Menu

java.lang.OutOfMemory Error

remi
2005-12-20
2013-06-04
  • remi

    remi - 2005-12-20

    hi all,

    i just wonder, whenever you get java.lang.OutOfMemory error in ccm, is there any particular error code embedded in the page header. maybe error 4xx,5xx or 6xx.

    currently i am fine tuning a restart script for ccm.

    thank you,

    remi

     
    • remi

      remi - 2006-01-11

      just to share something with all of you.

      since we have a very limited hardware, we have been frequently facing the java.lang.outOfMemory Error. So we decided to make a restarter script.

      The restarter script will restart the server whenever the server encounters the out of memory error or any other errors like 500 - internal server error.

      we can easily detect other errors on the server but not the out of memory error. We have found out that the error is caused by heavy load, in which it causes the request to be queued.

      Queued requests are not errors. It will return an empty string. So whenever the request is being put into queue, and it is queued beyond some treshold value, the server will be restarted.

      i just wonder, is there any better way of detecting the outOfMemoryError.

      thanks,

      remi

       

Log in to post a comment.