ThreadMXBean定位CPU占用过高

        请求节点: 
线程名称:  http-bio-8080-exec-147

线程状态:  RUNNABLE      CPU时间: 98952189ms      阻塞总数:  10513      等待总数:  0

堆栈跟踪:  

 java.lang.AbstractStringBuilder.(AbstractStringBuilder.java:64)
 java.lang.StringBuffer.(StringBuffer.java:120)
 java.util.Currency.getInstance(Currency.java:373)
 java.text.DecimalFormatSymbols.initialize(DecimalFormatSymbols.java:566)
 java.text.DecimalFormatSymbols.(DecimalFormatSymbols.java:94)
 java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:157)
 java.util.Formatter.getZero(Formatter.java:2251)
 java.util.Formatter.(Formatter.java:1877)
 java.util.Formatter.(Formatter.java:1898)
 java.lang.String.format(String.java:2792)
 com.danga.MemCached.SockIOPool.getSock(SockIOPool.java:816)
 com.danga.MemCached.MemCachedClient.get(MemCachedClient.java:1030)
 com.danga.MemCached.MemCachedClient.get(MemCachedClient.java:980)
 com.pacific.product.memcached.session.SessionService.getSession(SessionService.java:57)
 com.pacific.product.memcached.session.HttpSessionSidWrapper.(HttpSessionSidWrapper.java:17)
 com.pacific.product.memcached.session.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:21)

 com.pacific.product.filter.CheckPrivilegeFilterForBossSystem.doFilterInternal(CheckPrivilegeFilterForBossSystem.java:39)


通这上面可知这个线程占用时间相当多,然后是memcachedClient相关的线程,而且系统日志老是有memcache获得超时,然后又查看发现memcache启动的内存和可用连接太小,加大后暂时解决


ThreadMXBean定位CPU占用过高的jsp工程下载:http://download.csdn.net/download/xiaowanziwuha/9017315

你可能感兴趣的:(memcached)