0

I am running mCruiseOn Server, which is a java based server side application (sockets, multiple threads, memcached, mysql) on a Micro EC2. It has been crashing often. I suspect memory usage may have killed it.

How to you find out which program is using too much memory

I read through this and it was very useful. Now I need to know if my application crashed due to memory shortage. Any system log that has that information ?

Siddharth
  • 331

2 Answers2

1

If a well-designed application crashes due to lack of memory, it should give some useful information about this. Try running invoking the application from the Terminal, and examining the messages.

Eliah Kagan
  • 119,640
0

I was redirecting all output to a file using > my.log & and then using tail -f my.log to view all messages. For some reason all e.printstacktrace were not in the my.log. I was missing a RuntimeException and the exact root cause a ArrayOutofboundException.

Siddharth
  • 331