FATAL: ... java.lang.OutOfMemoryError: ... Java Heap Error at java.lang.String.<init>(String.java:388) at java.lang.String.substring(String.java:1372) at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:144) at org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:121) at hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:453) at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:277) at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:479) at hudson.Launcher$LocalLauncher.kill(Launcher.java:838) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:540) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE
So I tried to run simple Groovy script in Jenkins console
import org.jvnet.winp.Native; println(Native.parseCmdLineAndEnvVars("jenkins server pid"))
and I got string with 150k chars long, where only first thousand are regular chars with env variables and the rest is some chinese weirdo chars. I tried to run Jenkins with UTF-8 by specifying
-Dclient.encoding.override=UTF-8 which ofc does not help.
I'm quite hopeless and I don't know, how to fix this. Any suggestions?
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/57539fe9-a06a-4bb8-aa89-7c27cd538359%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
I must be missing something. 150000 characters is not that much in memory. Let's say around 300 kilo bytes actually in the JVM memory in utf 16. So I don't get where those 11GB come from.
Or do you mean 150000 strings of characters of various sizes?
Cheers
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dec131cd-e46a-4c3b-b0e1-1536e09d91e0%40googlegroups.com.