As a general rule, Java is optimized for throughput, not latency. Once the garbage collector kicks in, performance drops like a rock. A 2 second pause every once in a while is OK for a server, but for an IDE it's misery. So here's the fix:
- Go to your JDeveloper root directory, is should be something like C:\Oracle\jdev\Middleware\jdeveloper
- Open the file ide\bin\ide.conf, scroll down to the default memory settings:
- Boost the memory to something larger, like so:
- Open the file jdev\bin\jdev.conf
- Add the following config settings:
- Then restart JDeveloper... If it doesn't start, you'll need to reduce the amount of memory allocate in the ide.conf file from step 3.
AddVMOption -Xms128M
AddVMOption -Xmx768M
AddVMOption -Xms1024M
AddVMOption -Xmx1024M
# optimize the JVM for strings / text editing
AddVMOption -XX:+UseStringCache
AddVMOption -XX:+OptimizeStringConcat
AddVMOption -XX:+UseCompressedStrings
# if on a 64-bit system, but using less than 32 GB RAM, this reduces object pointer memory size
AddVMOption -XX:+UseCompressedOops
# use an aggressive garbage collector (constant small collections)
AddVMOption -XX:+AggressiveOpts
# for multi-core machines, use multiple threads to create objects and reduce pause times
AddVMOption -XX:+UseConcMarkSweepGC
No comments:
Post a Comment