Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 94016 invoked from network); 27 Apr 2008 09:04:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Apr 2008 09:04:43 -0000 Received: (qmail 86070 invoked by uid 500); 27 Apr 2008 09:04:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 86039 invoked by uid 500); 27 Apr 2008 09:04:32 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 86028 invoked by uid 99); 27 Apr 2008 09:04:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2008 02:04:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MISSING_MIMEOLE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kana-s@jb4.so-net.ne.jp designates 202.238.83.6 as permitted sender) Received: from [202.238.83.6] (HELO mx56.ms.so-net.ne.jp) (202.238.83.6) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2008 09:03:39 +0000 Received: from wmap05 (wmgate.so-net.ne.jp [202.238.94.27]) (authenticated) by mx56.ms.so-net.ne.jp with ESMTP id m3R93uBW000876 for ; Sun, 27 Apr 2008 18:03:56 +0900 Message-Id: <200804270903.m3R93uBW000876@mx56.ms.so-net.ne.jp> Date: Sun, 27 Apr 2008 18:03:56 +0900 (JST) From: kana-s@jb4.so-net.ne.jp To: users@tomcat.apache.org Subject: =?ISO-2022-JP?B?VG9tY2F0Ni4wLjE2IA==?= =?ISO-2022-JP?B?aXMgdG9vIGVhc2lseQ==?= =?ISO-2022-JP?B?IHRvIGJlIE91dE9mTQ==?= =?ISO-2022-JP?B?ZW1vcnkgY29tcGFyZQ==?= =?ISO-2022-JP?B?ZCB3aXRoIFRvbWNhdA==?= =?ISO-2022-JP?B?NS41?= MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Mailer: So-net WebMail System X-Priority: 3 X-MSMail-Priority: Middle X-Virus-Checked: Checked by ClamAV on apache.org I did a performance test with Apache Bench on Tomcat6.0.16. During the test,I got many error in catalina.out. SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space) # ./ab -c 200 -n 300000 http://******/sample/test.jsp Benchmarking 60.239.255.6 (be patient) Completed 30000 requests Completed 60000 requests apr_recv: Connection reset by peer (104) Total of 61428 requests completed =>OutOfMemoryError I can't understand why OutOfMemory caused so fast. I set session-timeout 1minute on CATALINE_BASE/conf/web.xml and docBase/WEB-INF/web.xml like this. web.xml ============================================== 〜 1 〜 ======================================================= I did the same test on the same machine with Tomcat5.5.26. Also used the same JDK 1.6.0_06 and mod_jk 1.2.21 . Apache version is 2.0.59. Apache and Tomcat exited the same machine. The test finished with no error. Of course I used the same JSP. GC parameter , maxThreads and Apache configuratiion was the same. I got heap dump and checked top of the heap size with NetBeans java.util.concurrent.ConcurrentHashMap$Segment size 23% / instance 22.6% java.util.concurrent.locks.ReentrantLock$NonfairSync size 21% / instance 22.6% java.util.concurrent.ConcurrentHashMap$HashEnry[] size 12.1% / instance 22.6% org.apache.catalina.session.StandardSession refered java.util.concurrent.ConcurrentHashMap$Segment. It looks like StandardSession is loop ConcurrentHashMap$Segment. But I am not sure how to look NetBeans IDE,perhaps mistakes this view. As I wanted to know conserned with session , I test JSP with session invalidated version. I put <% session.invalidate();%> in JSP and I did test. Result is no OutOfMemory. So I thought this issue is conserned with session. Do someone have any solution ? test.jsp ============================================== <%@ page contentType="text/html;charset=Shift_JIS" %> <%! String str = "Tomcat test"; %> <% out.println(str); %> <%=str%> ======================================================= server.xml ============================================== ======================================================= context.xml (sample.xml)================================ ======================================================= Thanks -- Kanako Shimizu --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org