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
Post a Comment