Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.OutOfMemoryError: Java heap space or how to reducing memory usage by plugin? #220

Open
f33r0 opened this issue Jan 19, 2024 · 3 comments

Comments

@f33r0
Copy link

f33r0 commented Jan 19, 2024

Jenkins and plugins versions report

 [Cobertura] Publishing Cobertura coverage report...
 [Cobertura] Publishing Cobertura coverage results...
java.lang.OutOfMemoryError: Java heap space
	at java.base/java.util.Arrays.copyOf(Unknown Source)
	at java.base/java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
	at java.base/java.lang.AbstractStringBuilder.append(Unknown Source)
	at java.base/java.lang.StringBuilder.append(Unknown Source)
	at hudson.plugins.cobertura.CoberturaXmlHandler.characters(CoberturaCoverageParser.java:330)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
	at java.xml/javax.xml.parsers.SAXParser.parse(Unknown Source)
	at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:78)
	at hudson.plugins.cobertura.CoberturaCoverageParser.parse(CoberturaCoverageParser.java:52)
	at hudson.plugins.cobertura.CoberturaPublisher.perform(CoberturaPublisher.java:596)
	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101)
	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$$Lambda$872/0x00000001012dbd00.run(Unknown Source)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

What Operating System are you using (both controller, and any agents involved in the problem)?

docker linux

Reproduction steps

  1. run coverage test
  2. error

Expected Results

Publishing coverage report

Actual Results

java.lang.OutOfMemoryError: Java heap space

Anything else?

No response

Are you interested in contributing a fix?

No response

@jeffpearce
Copy link
Contributor

Do you by chance have the coverage file from the job? It would make it easier to debug

@f33r0
Copy link
Author

f33r0 commented Jan 19, 2024

unfortunately I can't publish

@f33r0
Copy link
Author

f33r0 commented Jan 22, 2024

after using the new publishing command I get the error:

Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 37c0b962-d0b3-4c35-9fe4-f03d617c2f2c
java.lang.IllegalArgumentException: There is already a child [METHOD] <hyper::client::dispatch::Receiver<http::request::Request<hyper::body::body::Body>, http::response ::Response<hyper::body::body::Body>>>::close <0> with the name <hyper::client::dispatch::Receiver<http::request::Request<hyper::body ::body::Body>, http::response::Response<hyper::body::body::Body>>>::close in [CLASS] dispatch <7, LINE: 35.71% (10/28)>

is it still possible to describe a more detailed README for using the plugin in jenkins?

I have a long cobertura report.

How I can reduce memory usage by plugin??

@f33r0 f33r0 changed the title java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space or how to reducing memory usage by plugin? Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants