Pages

Thursday, September 25, 2014

Defunct Processes

Recently we faced a issue with one of our tomcat Server. The Server was crashed with Out of Memory error. We tried to get the server up and running but it did not came up running at any point. We then checked the process table where we, hello:local-ews $ ps ux USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME  COMMAND root  ...
Read More

Tuesday, September 23, 2014

Garbage Collection

As we said earlier objects are stored in the Young generation as well as Old generation and there should be a way to clean the objects. The Garbage Collector comes at this point. How a JVM does the Memory allocation? Memory allocations in JVM are done using 2 techniques Bump-the-pointer: bump-the-pointer creates objects on the...
Read More

Analyzing a JVM Crash

A crash can cause the JVM to terminate. A Crash or even a fatal error can cause a Crash. A bug in the API, a bug in third party library that we use or bug in a native api can cause these JVM crashes. JVM can crash due to the external factors like resource exhaustion etc. In this article we will see how we can analyze a JVM crash. Whenever a JVM is crashed a fatal error log file is generated. The file is named as hs_err_pid<pid>.log...
Read More