This question already has an answer here:
Closed 12 years ago.
Possible Duplicate:
java OutOfMemoryError in hudson
I'm getting following error in hudson ver 1.395
BUILD SUCCESSFUL
Total time: 16 minutes 44 seconds
FATAL: Java heap space
java.lang.OutOfMemoryError: Java heap space
at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:114)
at org.jvnet.winp.WinProcess.getEnvironmentVariables(WinProcess.java:109)
at hudson.util.ProcessTree$Windows$1.getEnvironmentVariables(ProcessTree.java:419)
at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:259)
at hudson.util.ProcessTree$Windows.killAll(ProcessTree.java:441)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:657)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:441)
at hudson.model.Run.run(Run.java:1362)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
See documentation: Hudson - OutOfMemoryError
You can also try to increase heap like that: java -jar hudson.war -Xms64m -Xmx256m (default is: -Xms32m -Xmx128m)
Related
This question already has answers here:
Error while generating report in apache-jmeter-5.4.1.tgz
(5 answers)
Closed 1 year ago.
I am unable to generate the html report from the results .jtl file. I have jdk 17 on my machine and while giving the jmeter command to generate the report is giving me the below error message.
"An error occurred: Error while processing samples: Consumer failed with message :Consumer failed with message :Consumer failed with message :Consumer failed with message :Begin size 2 is not equal to fixed size 5"
This issue is due to the use of JDK 17 which is not supported by JMeter 5.4.3.
This bug is identified under:
https://bz.apache.org/bugzilla/show_bug.cgi?id=65685
It is fixed in nightly build.
So you have 2 options:
Use JDK < 17
Use nightly build from here: https://ci.apache.org/projects/jmeter/nightlies/
The JMeter 5.5 release will be compatible with JDK 17.
This question already has answers here:
ClassNotFoundException with com.mysql.cj.jdbc.Driver, MySQL Connector and IntelliJ IDEA [duplicate]
(6 answers)
How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
(51 answers)
Closed 4 years ago.
I use liquibase 3.6.1 to work with Mysql database.
I use the lib "mysql-connector-java-5.1.21.jar", I got the below error when using diff command:
Unexpected error running Liquibase: java.lang.RuntimeException: Cannot find data
base driver: com.mysql.cj.jdbc.Driver
If I use the lib "mysql-connector-java-6.0.2.jar" I got the another error
Exception in thread "main" java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/mysql/cj/jdbc/Driver, offset=6
How can I fix this ?
I Get the below exception while I run the Gatling(version 2.2.5) Test through a Jenkins Job at 5 TPS - rampUsersPerSec(0.1) to 5 during(5 minutes),constantUsersPerSec(5) during(15 minutes), the exception starts after 15 mins of test run.
However, I do not see this exception while the test runs at 0.2 TPS - rampUsersPerSec(0.1) to 0.2 during(5 minutes),constantUsersPerSec(0.2) during(15 minutes)
The Jenkins( version 2.66 ) runs on Windows 7(64-bit OS), with 4 GB RAM on Tomcat.
Will this be the limitation and cause for this exception?
what's triggering this, how do I get this resolved ?
Is there any Gatling Jenkins Host(Load Generator) specification that I have to look for ?
Appreciate your inputs !
22:20:28.946 [DEBUG] i.g.h.a.AsyncHandler - Request
T013_GET_Updates' failed for user 601
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:221)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:899)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:276)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:643)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:566)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:480)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:442)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:748)
It seems, the port you are using is already occupied. Take specific port for host or remote machine.
Cheers,
Peekay
I'm having problems after an upgrade of my Sonar Qube :(
I installed the newest version (5.0) of Sonar Qube using an existing MySQL database. The previous Sonar Qube version was 3.7.4.
I'm using it to analyze a pure ActionScript project using the Flex plugin (Version 2.1).
The problems to me seem threefold:
Just starting the server and viewing previous analysis results I get gray
rects where code quality used to be indicated in shades of green etc.
After installing the Flex plugin using the Update Center this
remains.
Running the sonar-runner (version 2.4) I get two types of errors:
A whole lot of these:
23:35:01.572 DEBUG - Resource org.sonar.api.resources.Directory#46815882[key=path/to/folder] was found using deprecated key. Please update your plugin.
After which the analysis exits with this:
23:35:01.585 INFO - Sensor FlexSquidSensor done: 4508 ms
23:35:01.585 INFO - Sensor org.sonar.plugins.flex.cobertura.CoberturaSensor#1f96a21e...
23:35:01.585 INFO - No Cobertura report provided (see 'sonar.flex.cobertura.reportPath' property)
23:35:01.585 INFO - Sensor org.sonar.plugins.flex.cobertura.CoberturaSensor#1f96a21e done: 0 ms
23:35:01.585 INFO - Sensor SCM Sensor (wrapped)...
23:35:01.612 INFO - SCM provider for this project is: git
23:35:01.612 INFO - Retrieve SCM blame information...
23:35:01.615 INFO - 280 files to be analyzed
23:35:04.012 DEBUG - Updating semaphore batch-nl.manno:Earz
23:35:04.447 DEBUG - Release semaphore on project : org.sonar.api.resources.Project#4aa0b07b[id=60,key=nl.manno:Earz,qualifier=TRK], with key batch-nl.manno:Earz
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 14.293s
Final Memory: 15M/123M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
at java.security.AccessController.doPrivileged(Native Method)
at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
at org.sonar.runner.api.Runner.execute(Runner.java:100)
at org.sonar.runner.Main.executeTask(Main.java:70)
at org.sonar.runner.Main.execute(Main.java:59)
at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.IllegalArgumentException: Expected one blame result per line but provider returned 3 blame lines while file src/nl/aloft/earz/core/modules/interval/Interval.as has 76 lines
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
at org.sonar.batch.scm.DefaultBlameOutput.blameResult(DefaultBlameOutput.java:68)
at org.sonar.plugins.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:131)
at org.sonar.plugins.scm.git.JGitBlameCommand.access$000(JGitBlameCommand.java:44)
at org.sonar.plugins.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:105)
at org.sonar.plugins.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:102)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
logout
Now I used to have more plugins installed than just Flex (including the mentioned Cobertura) but after installing those Sonar Qube fails to run at all without too much notification (needless to say the runner won't run either).
Can anyone shed some light on this?
Thanks in advance,
Manno
We already faced this issue with files having old Mac line ends (CR or \r). Git will not consider them as line ends so you end up having less lines in your blame than in your file.
You can "clean" your file using mac2unix utility.
Im getting the following error while running pmd, findbugs in hudson.
FATAL: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.(Unknown Source)
at hudson.plugins.analysis.util.model.AnnotationContainer.initialize(AnnotationContainer.java:163)
at hudson.plugins.analysis.util.model.AnnotationContainer.(AnnotationContainer.java:119)
at hudson.plugins.analysis.util.model.WorkspaceFile.(WorkspaceFile.java:25)
at hudson.plugins.analysis.util.model.AnnotationContainer.addFile(AnnotationContainer.java:303)
at hudson.plugins.analysis.util.model.AnnotationContainer.updateMappings(AnnotationContainer.java:212)
at hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotation(AnnotationContainer.java:317)
at hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotations(AnnotationContainer.java:327)
at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:266)
at hudson.plugins.analysis.core.BuildResult.(BuildResult.java:206)
at hudson.plugins.findbugs.FindBugsResult.(FindBugsResult.java:40)
at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:132)
at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280)
at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:582)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:560)
at hudson.model.Build$RunnerImpl.post2(Build.java:156)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529)
at hudson.model.Run.run(Run.java:1349)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:139)
I have specified jvmargs for pmd, findbugs and ant_opts is set to 1024M.
If you are in windows you must edit the hudson.xml file to include the java argument
-Xmx1024m, however if you're on a *nix environment you must run the command
export JAVA_OPTS=-Xmx1024m
Or a more reasonable size for memory.