How to increase java heap size programmatically -


i have java desktop application searching files , reaching default heap limit pretty soon. wont have access systems installed in want increase jvm heap size in application itself. can me how can programmatically in application

setting -xmx 1 gig doesn't mean jvm allocate memory upon start-up. jvm allocate -xms (plus overhead) until more heap space needed. need protect users thrashing virtual memory or failed memory allocation os? if not, set xmx large value. note windows 32bit jvms ignore xmx settings greater 1.2gig, it's best not request more gig or safe.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -