Reducing the memory footprint of multiple Java processes on Solaris (UNIX) -


is there way have java process either fork or launch java process , use shared memory in order minimize ram usage?

there many processes in order allow 1 safely killed without affecting others. allow simple detection of threads using more memory or cpu if in separate processes. should allow process have crash or outofmemoryerror without affecting other processes.

it nice if have 100-300 java processes running @ same time,, each own purpose. realize may have limit number , require processes take on multiple roles if keep robbing memory database , filesystem.

edit:
think hit incorrect meaning when said shared memory. mean memory can used among multiple processes java classes (not variables). java packages , libraries can reused if possible.

@george baily - caught comment above.

yes, newer jvms share class text, understand in client (non-server) jvms. benefit of reduced io , startup time has added benefit in helping smaller footprint.

you can read more here:

http://download.oracle.com/javase/1.5.0/docs/guide/vm/class-data-sharing.html

you may want aggressive on heap resizing parameters allow smaller footprint. though semi-commercial, maintain small software package manages workloads multiple (hundreds) jvms , dynamically manages os-level io , process priority meet workload goals. poor-man's wlm jvms. i've been unsuccessful thusfar in being able manage jvm ergonomics in runtime, wlm approach works surprisingly well. let me know if want more info.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -