Native Tasks Such As Runtime.Exec() Can Result In High Response Time When Run Inside WebLogic Server
(Doc ID 1267340.1)
Last updated on OCTOBER 10, 2018
Applies to:Oracle JRockit - Version R27.5 to R28 [Release JRockit]
Oracle Solaris on SPARC (64-bit)
Application is using RunTime.exec("cp folder1 folder2") command for about 1000 files:
While executing this command stand alone, it runs in about 23- 27 seconds in Linux environment.
While executing the same in the startup class of WebLogic Server, it runs to completion in about 45 minutes when the JDK is JRockit.
When the same is attempted using SUN JDK, the process runs in about 13 minutes.
Why is there such a change in behavior?
When tweaking the JVM parameters: -Xms:3072m -Xmx:3072m -XgcPrio:throughput -Xns:100m , the response time for Jrockit in Linux fell down to about 15 minutes.
When we further tune (lower the value) of Xmx and Xms values i.e. -Xms8m and –Xmx3072m the time taken reduces to about 8 minutes.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document