-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kana,
[EMAIL PROTECTED] wrote: | 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. With a 1-minute session timeout, I'm guessing you created a billion sessions in a few seconds and that's what killed you. 'ab' AFAIK does not try to manage sessions or anything like that. If you issue that many requests, and each request creates a new session, you'll very quickly run out of memory. Do all requests in your webapp create sessions? How big is your heap? | 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 ? Set session="false" in your JSP and you won't create useless sessions. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgUg0YACgkQ9CaO5/Lv0PAtowCfU4AUe68TYHciOBaW6B2LLGfW xQwAn1+4PlqmhRarBR0WaVnQtSd5gZqe =Xsyf -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]