Skip to content

Instantly share code, notes, and snippets.

@joahking
Created February 14, 2009 16:16
Show Gist options
  • Save joahking/64404 to your computer and use it in GitHub Desktop.
Save joahking/64404 to your computer and use it in GitHub Desktop.
testing culerity, everything goes really cool, except the memory consume: too many (?) java/ruby processes remain in memory leaving my debian lenny wasted
THIS ARE EXPERIMENTS IN PROGRESS, cant seem to repeat the results in a way to provide more accurate testing bed. This seems to happen in one of my projects that extends insoshi http://github.com/joahking/insoshi/tree/master and heavily uses javascript (at the time some broken ones) and Google GMap API
after several running of cucumber feature with some javascript errors I end up with java proccesses eating my CPUs
$ uname -a; java -version; jruby -v
Linux pinar 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK Server VM (build 1.6.0_0-b11, mixed mode)
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-02-14 rev 9137) [i386-java]
problematic top
$ top
top - 17:06:21 up 4:02, 4 users, load average: 6.56, 5.63, 3.38
Tasks: 129 total, 8 running, 121 sleeping, 0 stopped, 0 zombie
Cpu(s): 85.0%us, 15.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29957 joahking 20 0 714m 53m 16m R 29 1.5 4:39.49 java
30137 joahking 20 0 724m 76m 17m R 29 2.2 2:04.60 java
29623 joahking 20 0 713m 46m 15m R 29 1.3 14:38.62 java
29854 joahking 20 0 713m 53m 16m R 28 1.5 5:36.38 java
30293 joahking 20 0 715m 54m 16m R 28 1.5 1:03.51 java
30041 joahking 20 0 713m 53m 16m R 26 1.5 3:37.76 java
$ ps aux | grep java
joahking 29623 59.6 1.3 730800 47388 pts/2 Rl 16:42 15:06 /usr/lib/jvm/java-1.5.0-sun/bin/java -client -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m -Xss1024k -Djna.boot.library.path=/home/joahking/lib/jruby/lib/native/linux-i386:/home/joahking/lib/jruby/lib/native/linux-amd64 -Djffi.boot.library.path=/home/joahking/lib/jruby/lib/native/*Linux -Xbootclasspath/a:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/bsf.jar -classpath /home/joahking/lib/jruby/lib/bsf.jar:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/profile.jar: -Djruby.home=/home/joahking/lib/jruby -Djruby.lib=/home/joahking/lib/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main /home/joahking/dev/rails/parapentes/vendor/plugins/culerity/lib/culerity.rb
joahking 29854 34.4 1.5 731052 55116 pts/2 Rl 16:50 6:04 /usr/lib/jvm/java-1.5.0-sun/bin/java -client -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m -Xss1024k -Djna.boot.library.path=/home/joahking/lib/jruby/lib/native/linux-i386:/home/joahking/lib/jruby/lib/native/linux-amd64 -Djffi.boot.library.path=/home/joahking/lib/jruby/lib/native/*Linux -Xbootclasspath/a:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/bsf.jar -classpath /home/joahking/lib/jruby/lib/bsf.jar:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/profile.jar: -Djruby.home=/home/joahking/lib/jruby -Djruby.lib=/home/joahking/lib/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main /home/joahking/dev/rails/parapentes/vendor/plugins/culerity/lib/culerity.rb
joahking 29957 36.2 1.5 731244 55292 pts/2 Rl 16:53 5:07 /usr/lib/jvm/java-1.5.0-sun/bin/java -client -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m -Xss1024k -Djna.boot.library.path=/home/joahking/lib/jruby/lib/native/linux-i386:/home/joahking/lib/jruby/lib/native/linux-amd64 -Djffi.boot.library.path=/home/joahking/lib/jruby/lib/native/*Linux -Xbootclasspath/a:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/bsf.jar -classpath /home/joahking/lib/jruby/lib/bsf.jar:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/profile.jar: -Djruby.home=/home/joahking/lib/jruby -Djruby.lib=/home/joahking/lib/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main /home/joahking/dev/rails/parapentes/vendor/plugins/culerity/lib/culerity.rb
joahking 30041 32.9 1.5 730456 54808 pts/2 Rl 16:55 4:05 /usr/lib/jvm/java-1.5.0-sun/bin/java -client -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m -Xss1024k -Djna.boot.library.path=/home/joahking/lib/jruby/lib/native/linux-i386:/home/joahking/lib/jruby/lib/native/linux-amd64 -Djffi.boot.library.path=/home/joahking/lib/jruby/lib/native/*Linux -Xbootclasspath/a:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/bsf.jar -classpath /home/joahking/lib/jruby/lib/bsf.jar:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/profile.jar: -Djruby.home=/home/joahking/lib/jruby -Djruby.lib=/home/joahking/lib/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main /home/joahking/dev/rails/parapentes/vendor/plugins/culerity/lib/culerity.rb
joahking 30137 24.0 2.1 742280 78704 pts/2 Rl 16:57 2:31 /usr/lib/jvm/java-1.5.0-sun/bin/java -client -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m -Xss1024k -Djna.boot.library.path=/home/joahking/lib/jruby/lib/native/linux-i386:/home/joahking/lib/jruby/lib/native/linux-amd64 -Djffi.boot.library.path=/home/joahking/lib/jruby/lib/native/*Linux -Xbootclasspath/a:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/bsf.jar -classpath /home/joahking/lib/jruby/lib/bsf.jar:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/profile.jar: -Djruby.home=/home/joahking/lib/jruby -Djruby.lib=/home/joahking/lib/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main /home/joahking/dev/rails/parapentes/vendor/plugins/culerity/lib/culerity.rb
joahking 30293 25.8 1.5 732200 55408 pts/2 Rl 17:02 1:30 /usr/lib/jvm/java-1.5.0-sun/bin/java -client -Djruby.memory.max=500m -Djruby.stack.max=1024k -Xmx500m -Xss1024k -Djna.boot.library.path=/home/joahking/lib/jruby/lib/native/linux-i386:/home/joahking/lib/jruby/lib/native/linux-amd64 -Djffi.boot.library.path=/home/joahking/lib/jruby/lib/native/*Linux -Xbootclasspath/a:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/bsf.jar -classpath /home/joahking/lib/jruby/lib/bsf.jar:/home/joahking/lib/jruby/lib/jruby.jar:/home/joahking/lib/jruby/lib/profile.jar: -Djruby.home=/home/joahking/lib/jruby -Djruby.lib=/home/joahking/lib/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main /home/joahking/dev/rails/parapentes/vendor/plugins/culerity/lib/culerity.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment