简体   繁体   English

Windows Powershell经常在运行jboss 7.1.1时挂起

[英]Windows Powershell frequently hangs running jboss 7.1.1

I am new to jboss server level configuration. 我是jboss服务器级别配置的新手。 Our application is hosted in windows server and running through power shell. 我们的应用程序托管在Windows服务器中,并通过Power Shell运行。 Once in a day power shell got hanged and we are restarting the jboss server. 一天一次,电源外壳被挂起,我们将重新启动jboss服务器。

Heap memory -Xms1024m -Xmx8192m 32 GB RAM Please let me know if you required any other configuration to identify the issue. 堆内存-Xms1024m -Xmx8192m 32 GB RAM请告知我是否需要任何其他配置来识别问题。

Help us to identify the root cause. 帮助我们找出根本原因。

One of the reason might be clicking inside Windows Power Shell, makes the power shell to wait and the cascade effect makes all the threads wait and finally results in server hung. 原因之一可能是在Windows Power Shell中单击,使Power Shell等待,而级联效果使所有线程等待,最终导致服务器挂起。

Reason: Clicking inside the windows power shell, knowingly or unknowingly it stops the output in the console and also the output to the log file. 原因:在Windows Power Shell内单击,有意或无意地将其停止在控制台中的输出以及在日志文件中的输出。 This could hold the thread which tries to write the log and hence we have other threads waiting. 这可能包含尝试写入日志的线程,因此我们还有其他线程在等待。

Solution: 解:

Temporary: Once any key is pressed on the windows power shell, it releases the console output and log and hence all the threads are released. 临时的:一旦在Windows Power Shell上按下了任何键,它将释放控制台输出和日志,因此所有线程都被释放。

Permanent: 常驻:

Uncheck the properties QuickEdit Mode and\\or Insert in the windows power shell, this will not have any impact on our application, as we don't need this feature enabled for our window power shell. 取消选中“快速编辑模式”属性和/或在Windows Power Shell中插入,这不会对我们的应用程序产生任何影响,因为我们不需要为Windows Power Shell启用此功能。 Please read this blog . 请阅读此博客

Check this link to tune the perfomance of JBoss AS 7 检查此链接以调整JBoss AS 7的性能

Performance tuning 性能调优

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM