You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Messi Chan <ch...@gmail.com> on 2007/07/26 11:47:38 UTC
java.lang.OutOfMemoryError: Out of swap space?
Hi, all
I write a server using MINA1.1.1, and test it's performance on Linux. I
setup 100 threads and send messages to the server constantly in 5 minutes
using LoadRunner8. I type "top" command on Linux monitoring the resources.
Then the problem is: I found that resources growing and never reduce after 5
minutes. when I test again and again, I met the OOM just like below:
Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested
32756 bytes for ChunkPool::allocate. Out of swap space?
JAVA_OPTS: -Xms2048M -Xmx2048M -XX:MaxDirectMemorySize=512M -Xss128k
-XX:+AggressiveOpts -XX:+UseParallelGC -XX:+UseBiasedLocking -XX:NewSize=64M
-XX:-HeapDumpOnOutOfMemoryError
JDK:Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
MINA:1.1.1
LINUX:Linux 2.6.9-42.ELsmp,i386
Mem: 4045260k total
Swap: 16771776k total
4625 root 17 0 3964m 2.0g 12m S 274 50.6 35:29.05 java
4625 root 17 0 3974m 2.0g 12m S 259 50.8 35:36.83 java
4625 root 17 0 3953m 2.0g 12m S 266 50.8 35:44.83 java
4625 root 17 0 3997m 2.0g 12m S 276 51.1 35:53.14 java
4625 root 17 0 3966m 2.0g 12m S 270 51.2 36:01.27 java
4625 root 17 0 3954m 2.0g 12m S 282 51.3 36:09.74 java
4625 root 17 0 3987m 2.0g 12m S 268 51.5 36:17.81 java
4625 root 17 0 3951m 2.0g 12m S 268 51.6 36:25.86 java
4625 root 17 0 3997m 2.0g 12m S 280 51.8 36:34.28 java
4625 root 17 0 4003m 2.0g 12m S 270 52.0 36:42.39 java
4625 root 17 0 4019m 2.0g 12m S 273 52.2 36:50.61 java
4625 root 17 0 3852m 2.0g 12m S 200 51.8 36:56.61 java
4625 root 17 0 4038m 2.0g 12m S 266 52.5 37:04.60 java
4625 root 17 0 4036m 2.0g 12m S 274 52.7 37:12.83 java
4625 root 17 0 4032m 2.0g 12m S 265 52.8 37:20.80 java
4625 root 17 0 4028m 2.0g 12m S 281 52.9 37:29.26 java
4625 root 17 0 4036m 2.0g 12m S 271 53.1 37:37.43 java
4625 root 17 0 4028m 2.1g 12m S 266 53.3 37:45.43 java
4625 root 17 0 4038m 2.1g 12m S 273 53.4 37:53.64 java
4625 root 17 0 4061m 2.1g 12m S 267 53.7 38:01.68 java
4625 root 17 0 4030m 2.1g 12m S 269 53.7 38:09.78 java
4625 root 17 0 4086m 2.1g 12m S 275 54.0 38:18.04 java
4625 root 17 0 4025m 2.1g 12m S 251 54.0 38:25.58 java
4625 root 17 0 3860m 2.1g 12m S 18 53.5 38:26.13 java
4625 root 17 0 3860m 2.1g 12m S 1 53.5 38:26.15 java
4625 root 17 0 3858m 2.1g 12m S 3 53.5 38:26.24 java
4625 root 17 0 3968m 2.1g 12m S 88 53.8 38:28.89 java
4625 root 17 0 4053m 2.1g 12m S 271 54.2 38:37.05 java
4625 root 17 0 4065m 2.1g 12m S 263 54.4 38:44.95 java
4625 root 17 0 3994m 2.1g 12m S 229 54.3 38:51.84 java
4625 root 17 0 4043m 2.1g 12m S 120 54.4 38:55.46 java ---
here! the OOM is
Anybody could help me?
--
View this message in context: http://www.nabble.com/java.lang.OutOfMemoryError%3A-Out-of-swap-space--tf4150512s16868.html#a11807305
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.