java out of memory error
Posted on 2006-04-21
I have a dialog that the user specifies a file that contains information that needs to be stored in the database, then they click update. This takes the information from the file and does all the necessary checks on the data. Only the checks have been made, it splits the data into serialized objects that are appropriate for that data. Then i call methods from the server via RMI and pass these objects to those methods and insert the data appropriately. This works perfect except it gives an out of memory error occasionally. From what I see it's not at a given amount of records. This error has occured anywhere between inserting 750 records to 20,000 records. Below is the error:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
at java.security.AccessController.doPrivileged(Native Method)
Caused by: java.lang.OutOfMemoryError
Does java store the serialized objects in memory until the process is complete or do you think this is occuring for some other reason? Thanks for any help.