Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
K
kb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • granite
  • kb
  • Wiki
    • Best_practice
  • logstash

logstash · Changes

Page history
update: 修改部署机器信息 authored Apr 29, 2021 by 李林坳's avatar 李林坳
Hide whitespace changes
Inline Side-by-side
Showing with 24 additions and 0 deletions
+24 -0
  • best_practice/logstash.md best_practice/logstash.md +24 -0
  • No files found.
best_practice/logstash.md
View page @ 8e174960
......@@ -60,3 +60,27 @@ You can install it with this command `bin/logstash-plugin install file:///usr/sh
---
### logstash-plugin 提示内存不足, 但物理内存其实还有剩余
现象:
```
(base) [root@bdp-ls-001 logstash]# ./bin/logstash-plugin
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000004e9990000, 12187009024, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 12187009024 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/share/logstash/hs_err_pid26195.log
```
可以通过设置LS_JVM_OPTS
```
LS_JAVA_OPTS="-Xms256m -Xmx512m" /usr/share/logstash/bin/logstash-plugin list
```
参考:https://github.com/elastic/logstash/blob/v5.5.2/bin/logstash.lib.sh#L31-L49
Clone repository
  • README
  • basic_guidelines
  • basic_guidelines
    • basic_guidelines
    • dev_guide
    • project_build
    • 开发流程
  • best_practice
  • best_practice
    • AlterTable
    • RDS
    • azkaban
    • create_table
    • design
    • elasticsearch
    • elasticsearch
      • ES运维
    • logstash
View All Pages