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 is sqlwarning and discuss the procedure of retrieving warnings?
What is difference between java.util.Date and java.sql.Date?
Expalin the method of calling a stored procedure from jdbc.
What is savepoint in jdbc?
Where can I find ojdbc14 jar file?
Can I use JDBC to execute non-standard features that my DBMS provides?
How to insert an image or raw data into database?
What are different types of ResultSet?
What is the most common example type 1 driver?
What are the common jdbc exceptions?
What are the advantages of collection pools?
What is a jdbc connection?
What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.
In which ways is driver class is registered with drive manager?
Why should we close database connections in java?