Skip to content

Instantly share code, notes, and snippets.

@saurabhnanda
Last active December 31, 2015 12:59
Show Gist options
  • Save saurabhnanda/7989904 to your computer and use it in GitHub Desktop.
Save saurabhnanda/7989904 to your computer and use it in GitHub Desktop.
--------- Apache processes ----------
PID    PPID  VMSize    Private  Name
-------------------------------------
4969   1     103.6 MB  0.7 MB   /usr/sbin/apache2 -k start
15541  4969  103.1 MB  0.7 MB   /usr/sbin/apache2 -k start
16402  4969  341.1 MB  22.2 MB  /usr/sbin/apache2 -k start
16439  4969  343.2 MB  24.3 MB  /usr/sbin/apache2 -k start
16796  4969  351.3 MB  32.7 MB  /usr/sbin/apache2 -k start
### Processes: 5
### Total private dirty RSS: 80.49 MB


-------- Nginx processes --------

### Processes: 0
### Total private dirty RSS: 0.00 MB


----- Passenger processes ------
PID    VMSize    Private   Name
--------------------------------
3020   827.3 MB  129.5 MB  Rack: /home/nanda/app1/current
4449   231.9 MB  39.6 MB   Passenger ApplicationSpawner: /home/nanda/app2/current
4464   247.0 MB  54.8 MB   Rack: /home/nanda/app2/current
15543  87.1 MB   0.3 MB    PassengerWatchdog
15547  165.0 MB  3.8 MB    PassengerHelperAgent
15549  44.9 MB   6.5 MB    Passenger spawn server
15552  70.8 MB   0.8 MB    PassengerLoggingAgent
### Processes: 7
### Total private dirty RSS: 235.20 MB
  • large Rails 3.1 app -- divided into 6 engines internally.
  • jruby 1.7.5 (1.9.3p392) 2013-10-07 74e9291 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_31-b04-415-11M3646 [darwin-x86_64]
  • App started with jruby -J-Xms100m -J-Xmx100m ./script/rails s -e production
  • jstat output:
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC     YGCT    FGC    FGCT     GCT   
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53997.1    107    0.942  342   135.541  136.483
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53997.1    107    0.942  354   140.758  141.700
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53997.1    107    0.942  365   145.461  146.403
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53997.1    107    0.942  377   150.999  151.941
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53997.3    107    0.942  388   155.482  156.424
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53997.5    107    0.942  399   160.959  161.901
2112.0 2112.0 2111.2  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53999.8    107    0.942  410   166.001  166.943
2112.0 2112.0 2109.8  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 53999.7    107    0.942  421   170.671  171.613
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 54000.2    107    0.942  433   175.992  176.934
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 54000.5    107    0.942  444   180.621  181.562
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 54000.4    107    0.942  455   185.327  186.269
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 54000.5    107    0.942  467   190.871  191.813
2112.0 2112.0 2112.0  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 54000.5    107    0.942  478   195.612  196.554
2112.0 2112.0 2111.8  0.0   17024.0  17024.0   81152.0    81152.0   83968.0 54005.9    107    0.942  490   200.880  201.822
  • JVM output:
[2013-12-16 22:07:52] INFO  WEBrick 1.3.1
[2013-12-16 22:07:52] INFO  ruby 1.9.3 (2013-10-07) [java]
[2013-12-16 22:07:52] INFO  WEBrick::HTTPServer#start: pid=35368 port=3000
Exception in thread "Poller SunPKCS11-Darwin" java.lang.OutOfMemoryError: Java heap space
	at sun.security.pkcs11.wrapper.PKCS11.C_GetSlotInfo(Native Method)
	at sun.security.pkcs11.SunPKCS11.initToken(SunPKCS11.java:767)
	at sun.security.pkcs11.SunPKCS11.access$100(SunPKCS11.java:42)
	at sun.security.pkcs11.SunPKCS11$TokenPoller.run(SunPKCS11.java:700)
	at java.lang.Thread.run(Thread.java:680)
Exception in thread "RubyThread-9: /Users/saurabhnanda/.rvm/rubies/jruby-1.7.5/lib/ruby/1.9/webrick/server.rb:180" java.lang.OutOfMemoryError: Java heap space
Exception in thread "RubyThread-7: /Users/saurabhnanda/.rvm/rubies/jruby-1.7.5/lib/ruby/1.9/webrick/utils.rb:175" java.lang.OutOfMemoryError: Java heap space
Exiting
LoadError: load error: rails/commands -- java.lang.OutOfMemoryError: Java heap space
  require at org/jruby/RubyKernel.java:1082
   (root) at ./script/rails:6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment