JVM
528208Jun 11 2007 — edited Jun 12 2007Hi,
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