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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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