日期:2014-05-20  浏览次数:22054 次

linux + tomcat +mysql linux cpu值很高,jvm也高.什么问题?

linux + tomcat +mysql linux cpu值很高,jvm也高.什么问题?

一:linux服务器java 占cpu很高
[root@localhost ~]# top
top - 16:59:14 up 19:49, 1 user, load average: 1.10, 1.65, 1.73
Tasks: 126 total, 2 running, 124 sleeping, 0 stopped, 0 zombie
Cpu(s): 24.8%us, 0.1%sy, 0.0%ni, 75.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4014080k total, 1896144k used, 2117936k free, 5860k buffers
Swap: 8193140k total, 40668k used, 8152472k free, 470580k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND  
14915 root 18 0 1343m 1.2g 19m S 99 30.5 74:09.67 java 

=====================
二:jvm 内存占了很多,897M

MAX HEAP: 989593600
USE HEAP:919304264
Heap Memory Usage: init = 64225280(62720K) used = 919304264(897758K) committed = 989593600(966400K) max = 989593600(966400K)
Non-Heap Memory Usage: init = 19136512(18688K) used = 62490560(61025K) committed = 62914560(61440K) max = 117440512(114688K)

三:netstat -nat 感觉还算正常?
[root@localhost ~]# netstat -nat;
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State  
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN  
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN  
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN  
tcp 0 0 0.0.0.0:818 0.0.0.0:* LISTEN  
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN  
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN  
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN  
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN  
tcp 0 0 127.0.0.1:3306 127.0.0.1:47370 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:40707 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:35646 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:57159 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:39268 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:56180 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:59533 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:41345 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:59800 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:35534 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:60110 ESTABLISHED 
tcp 0 0 127.0.0.1:3306 127.0.0.1:36294 ESTABLISHED 
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN  
tcp 0 0 :::8009 :::* LISTEN  
tcp 0 0 :::80 :::* LISTEN  
tcp 0 0 :::22 :::* LISTEN  
tcp 0 0 ::ffff:127.0.0.1:60110 ::ffff:127.0.0.1:3306 ESTABLISHED 
tcp 0 0 ::ffff:127.0.0.1:59533 ::ffff:127.0.0.1:3306 ESTABLISHED 
tcp 0 0 ::ffff:127.0.0.1:59800 ::ffff:127.0.0.1:3306 ESTABLISHED 
tcp 0 0 ::ffff:172.16.4.2:80 ::ffff:123.125.66.38:22819 ESTABLISHED