tags:

views:

140

answers:

1
cqq.rb:96 **warning: Statement not reached.**

/root/newpackage/lib.rb:727 **warning: instance variable @object not initialized**

Error: Your application used more memory than the safety cap of 500m.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Exception trace follows:
java.lang.OutOfMemoryError: Java heap space

curiosu to know what these 2 mean

cqq.rb:96 warning: Statement not reached.

/root/newpackage/lib.rb:727 warning: instance variable @object not initialized

+1  A: 

The first warning is usually due to some code never being reachable (at least in compiled languages) though it's hard to say without seeing the code around line 96 in cqq.rb.

The second warning is likely due to the error you get saying that you are out of memory and unable to allocate the necessary memory to instantiate a new object.

As for solving the second, just linking to your question about that yesterday in case someone finds this question looking for a solution.

m5h
yes i am trying to find a memory leak in my code.
puqt