帮助分析glassfish服务器挂起问题
我们正在运行一个 glassfish 服务器,其中包含大约 20 个 jax-ws Metro Web 服务。服务器规格为 Core2Duo,配备 8GB RAM。我们对所有 Web 服务使用单个 http 侦听器。开发设置为 True。请求线程计数为 2,接受器计数为 1。 最小和最大堆大小为 1GB,永久代设置为 512MB。 这些服务通过 Hibernate 层访问 Oracle 数据库,并且服务之间存在许多服务间调用。 前端是ASP.Net。我们的问题是,当 4-5 个用户尝试同时访问应用程序一段时间(1 小时)时,glassfish 服务器会挂起,CPU 利用率达到 100%,但内存利用率约为 10-11%。 我们无法找到有关如何调试此问题的任何指示。在某些情况下,日志文件会给出 java.lang.OutofMemory Exception:PermGenSpace。但这也不是每次都会发生,即在很多情况下,日志文件不会给出任何挂起错误。此外,如果我们尝试增加 Perm Gen 空间,玻璃鱼服务器也不会启动。我们需要一些关于如何诊断和解决这个问题的指导。 我们使用的Glass Fish版本是v2.1。 我们有以下观察: 1. 添加更多http侦听器(每4-5个服务1个侦听器)确实会延长失败时间,但效果不大。 2. 当使用 SOAP-UI 调用一些繁重的服务(一对一操作)时,同时运行多个线程时我们也会遇到挂起问题。 (例如8-10个线程) 3. 我们观察到,当使用 SOAP-UI 调用时,服务操作(不调用任何其他服务)很少挂起,而调用其他服务的服务则频繁挂起。
We are running a glassfish server with around 20 jax-ws metro web services. The server specs are Core2Duo with 8GB RAM. We are using a single http listener for all the web services. Development is set to True. Request Thread Count is 2 and Acceptor Count is 1.
The Minimum and Maximum Heap Sizes are 1GB and the Perm Gen is set to 512MB.
The services access an Oracle database via a Hibernate layer and there are many interservice calls between the services.
The front end is ASP.Net. Our problem is that when 4-5 users try to access the application simultaneously for some time (1 hour) the glassfish server hangs with the CPU going to 100% but the memory utilization is around 10-11%.
We are not able to find any pointers as to how to debug this problem. On some instances the log file gives java.lang.OutofMemory Exception : PermGenSpace. But this is also not everytime, i.e. on many occassions the log file does not give any error on hanging. Also the glass fish server does not start if we try to increase the Perm Gen Space. We need some direction on how to diagnose and move towards the solution to this problem.
The Glass Fish Version we are using is v2.1.
We have the following observations:
1. Adding more http listeners (1 listener per 4-5 services) does prolong the failing time but not with much effect.
2. When calling some of the heavy services (one by one operation) with SOAP-UI we also get the hang problem when running many threads simultaneously. (e.g. 8-10 threads)
3. We have observed that when calling with SOAP-UI a service operation (which does not call any other services) rarely hangs while a service calling other services hangs much frequently.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论