I am trying to build a lexicon trie of almost 110000 words in java in netbeans. My code is running fine but it gives an Exception as follows:
Exception in
if you want to change it for netbeans it self you can change it from this file:
netbeans.conf
you will find it in netbeans folder under /etc
and there is two parameters for the heap
Xms - the initial size of the heap.
Xmx - max java heap size
it using the default, you just have to add it there and try to add them both.
and also don't forget to add those to netbeans_default_options when you change the XMX
-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
so netbeans_default_options will be something like that:
netbeans_default_options="-J-client -J-Xss2m -J-Xms512m -J-Xmx1024m -J-XX:PermSize=256m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled"