这是运行负载测试时预生产服务器的 JVM 内存使用情况(Xmx=10g)。我有几个问题。
垃圾收集器几乎每 5 分钟运行一次。在这 5 分钟内,堆从 3GB 增长到 10GB。这种增长正常吗?如果没有,如何分析我的应用程序中的问题?
在两个垃圾收集器周期内,平均堆使用量逐渐减少并突然增加。这是什么原因?
在第二条评论中提到的逐渐下降中,没有平稳下降,有一个振动。这是什么原因?
我的CPU数量是8。理论上说,我可以有16个线程来运行我的多线程程序。我有几个问题。
以下是我的多处理代码。regressTuple 有大约 2000 个项目。因此,以下代码创建了大约 2000 个并行进程。运行此程序时,我的 Dell XPS 15 笔记本电脑崩溃了。
特此我的代码:
regressTuple = [(x,) for x in regressList]
processes = []
for i in range(len(regressList)):
processes.append(Process(target=runRegressWriteStatus,args=regressTuple[i]))
for process in processes:
process.start()
for process in processes:
process.join()
Run Code Online (Sandbox Code Playgroud) python multithreading multiprocessing python-multithreading python-3.x
这是 filebeat 的全新安装。我从现有服务器复制了配置文件 filebeat.yml。
文件节奏版本:6.8.5
当服务启动时sudo systemctl start filebeat,通过查看服务状态会抛出以下错误sudo systemctl status filebeat
filebeat.service: main process exited, code=exited, status=1/FAILURE
Unit filebeat.service entered failed state.
filebeat.service failed.
filebeat.service holdoff time over, scheduling restart.
Stopped Filebeat sends log files to Logstash or directly to Elasticsearch..
start request repeated too quickly for filebeat.service
Failed to start Filebeat sends log files to Logstash or directly to Elasticsearch..
Unit filebeat.service entered failed state.
filebeat.service failed.
Run Code Online (Sandbox Code Playgroud)
失败的原因是什么?