Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JVM

528208Jun 11 2007 — edited Jun 12 2007
Hi,
I am using Jbuilderx, and I have 256MB of RAM. I cretae a TreeMap, fill it with key/value pairs and I calculated an approximate size of the TreeMap (key size + value size). I want to keep this tree into memory until the size becomes 100MB.
I was surprised that although I set -Xms = 512, -Xmx = 1024, I recieved the message "java.lang.outofmemory" error when just filling (key+value) of size = 20MB.

I think, even if I am not using JVM, keeping 20MB in memory is OK?!!!!!
Please I need someone to tell me how JVM works and why I recieved "java.lang.outofmemory" error?
Note: I am using the following environmet configuration:
envConfig.setCacheSize (131072)
dbConfig.setPageSize(8192)
I also noticed that the PF(Page File) on the task manager was around 860 MB


Regards,
Ahmad.

Message was edited by:
user525205
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2007
Added on Jun 11 2007
4 comments
683 views