HI ALL,
How to Overcome "OutOfMemoryException"? when I am compiling
source having more than 1000 LOC throwing this exception.
Can any one give correct answer to my question? thx
Answer Posted / sunit panday
actually there are some conditions due to which
OutOfMemoryException caused as follows:-
1. when java virtual machine coudnot create the object as
specified by the programmer
2. when the database so high as respect to system physical
and virtual memory is low
you can use following command to find the free memory:-
Runtime runtime = Runtime.getRuntime();
System.out.println ("Free memory : " - + runtime.freeMemory
() );
as this exception is in java.lang.Object package
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the flow statements of jdbc?
What is the difference between jdbc and odbc?
explain about special characters?
Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
What is a datasource in java?
What is jdbc odbc bridge?
What is DML?
How do I start debugging problems related to the JDBC API?
How do I know which jdbc driver to use?
What is metadata in jdbc?
Is jdbc a middleware?
Which of the attributes in the monitoring tab for a jdbc connection pool in the administrative console tell us how many clients are currently waiting for a connection?
What port does jdbc use?
How to check jdbc driver version in websphere?
What does jdbc do?