Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Jute Powerful Forum  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 关于 Jute 运行于 resin on linux 的问题,非常严重!
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 18:41 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在服务器上安装Jute 后,服务器资源经常占用完,这样的情况天天都有。

如下:

12:39pm up 7:58, 1 user, load average: 3.27, 3.39, 3.75
293 processes: 289 sleeping, 3 running, 1 zombie, 0 stopped
CPU0 states: 78.5% user, 21.2% system, 0.0% nice, 0.0% idle
CPU1 states: 77.0% user, 22.4% system, 0.0% nice, 0.0% idle
Mem: 1030560K av, 901612K used, 128948K free, 0K shrd, 72736K buff
Swap: 1048784K av, 0K used, 1048784K free 551532K cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2020 resin 25 0 129M 129M 26016 R 67.0 12.8 139:29 java
30663 resin 25 0 129M 129M 26016 R 65.9 12.8 123:30 java
16905 root 17 0 1196 1196 824 R 9.4 0.1 0:03 top
5252 nobody 15 0 8180 8180 7544 S 0.5 0.7 0:05 httpd
11961 resin 15 0 129M 129M 26016 S 0.5 12.8 0:05 java

进程 2020 和 30663 的cpu占用一直不减,且运行时间超长,永不停止。

只有重启resin,否则服务器只有等死。

请问是怎么回事?

环境:

RedHat 7.3 Resin 2.1.6 Apache 1.3.27 J2sdk1.4.0_03

java version "1.4.0_03"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_03-b04)



作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 19:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你的服务器的配置大概是什么。

另外给个地址看看才能知道resin的原因。




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 19:41 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
软件还是硬件?

访问jute是正常的,速度非常快的!



作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 19:43 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我想请问一下,怎样的情况(程序或代码)才会出现这样的问题?

是不是resin/java的BUG呢?



作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 20:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
iiizfjn wrote:
软件还是硬件?

访问jute是正常的,速度非常快的!


硬件呀。

我们要看了你的论坛知道是什么地方出了错。




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 20:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
双p3 1g 1g内存


作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 20:55 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
iiizfjn wrote:
我想请问一下,怎样的情况(程序或代码)才会出现这样的问题?

是不是resin/java的BUG呢?


这个说不好,要看了你resin的log才知道。




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 21:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
本站就是用在linux系统上的。

安装的是resin2.1.6

内存比你低多了。

而且在跑好几个jute,没有什么问题呀




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 21:04 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我想请问一下,怎样的情况(程序或代码)才会出现这样的问题?

是不是resin/java的BUG呢?



作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 21:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
iiizfjn wrote:
我想请问一下,怎样的情况(程序或代码)才会出现这样的问题?

是不是resin/java的BUG呢?


不是程序或代码的问题,应是你没安装好的原因吧。

或者你是使用d版的问题。




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 21:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
购买的正版。


作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 21:30 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
iiizfjn wrote:
购买的正版。


如果你是正版用户,如方便的话请把地址给我看,这样才知道。

不方便公开的话,请发悄悄话给我(PM)。

我们会努力为你解决问题的。




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-19 21:33 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
http://worldheritage-china.com/bbs/


作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
netboy



发贴: 0
积分: 0
于 2003-04-19 21:37 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
iiizfjn wrote:
http://worldheritage-china.com/bbs/


这个坛子服务器的管理员以前同我们联系过。(请问你是该服务器的管理员吗?如是的话,请QQ联系)

好像从安装到现在没有出现什么问题问过我们呀。




作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
今夜的舞蹈

free as a bird

Jute Pro User


发贴: 163
积分: 0
于 2003-04-19 22:19 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
恩?我的论坛,是怎么回事?


free as a bird
作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-04-20 01:46 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
占CPU不减的情况(还是两个CPU)说明有程序一直在运算,比如死循环或某个强度很大的运算什么的。而有死循环的时候log里一般会有StackOverFlow的错误记录,Jute并没有强度很大的运算。 你服务器上的这种现象不一定和Jute有关。因为虚拟主机上的每个用户都会影响服务器的(我查看过这个服务器上有将近100个虚拟主机啊!)。所以解决问题前,你首先要查看resin的日志,特别是CPU占用过多的时刻的日志,另外每次这种情况的时候,是不是在同一时间范围?建议你写一个脚本,每隔1分钟记录一下当前的时间和相应的load,然后再对照log来分析。

另一个可能的原因就是JDK没有装好。你可以试着更换别的JDK试试(可以联络zua让他推荐适合你服务器的JDK)。resin2.1.6应该是稳定的,你也可以升级成2.1.8试试。


rainman edited on 2003-04-20 01:53


作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
阿熊



发贴: 0
积分: 0
于 2003-04-20 08:46 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看看我们服务器的
使用了服务器专用JDK
利用了SWAP

Mem: 512300K av, 509212K used, 3088K free, 16K shrd, 3576K buff
Swap: 642560K av, 259240K used, 383320K free 19572K cached



作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
iiizfjn



发贴: 0
积分: 0
于 2003-04-20 12:16 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
谢谢您的热心回答,请问:

2020 resin 25 0 129M 129M 26016 R 67.0 12.8 139:29 java
30663 resin 25 0 129M 129M 26016 R 65.9 12.8 123:30 java

其中怎样查询进程:2020 与 30663 是哪一个jsp/servlet 在运行呢?

谢谢。



作者 Re:关于 Jute 运行于 resin on linux 的问题,非常严重! [Re:iiizfjn]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-04-21 00:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
> 其中怎样查询进程:2020 与 30663 是哪一个jsp/servlet 在运行呢
这是查不出来的。你可以在resin中设置debug,使得每个servlet运行前都记录,这样就可以查出是那个jsp/servlet占用CPU过高了。





flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923