Coder Social home page Coder Social logo

Comments (5)

ecki avatar ecki commented on July 28, 2024

What JVM has produced thenGClog, what command line settings did you use and can you attach a small sample file?

from gcviewer.

adrixtacy avatar adrixtacy commented on July 28, 2024

Hi Ecki

This is from Jira. Here is the JVM used :

-Xlog:gc*:file=/mycloud/apps/jira/prod/logs/atlassian-jira-gc-%t.log:time,uptime:filecount=5,filesize=20M -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent

Java version :
11.0.7
AdoptOpenJDK

I've also attached a sample GC log
atlassian-jira-gc-2020-06-29_10-31-04.log

from gcviewer.

adrixtacy avatar adrixtacy commented on July 28, 2024

Here is another Jira instance i have locally with this JVM arguments :

<JVM-Input-Arguments>--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED -Djava.util.logging.config.file=/Users/adrianstephen/jira/atlassian-jira-software-8.5.4-standalone/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms384m -Xmx2048m -XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT -Djira.home=/Users/adrianstephen/jira-home/atlassian-jira-software-8.5.4 -Datlassian.plugins.startup.options= -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xlog:gc*:file=/Users/adrianstephen/jira/atlassian-jira-software-8.5.4-standalone/logs/atlassian-jira-gc-%t.log:time,uptime:filecount=5,filesize=20M -XX:+ExplicitGCInvokesConcurrent -Dignore.endorsed.dirs= -Dcatalina.base=/Users/adrianstephen/jira/atlassian-jira-software-8.5.4-standalone -Dcatalina.home=/Users/adrianstephen/jira/atlassian-jira-software-8.5.4-standalone -Djava.io.tmpdir=/Users/adrianstephen/jira/atlassian-jira-software-8.5.4-standalone/temp</JVM-Input-Arguments>

and sample GC file :
atlassian-jira-gc-2020-08-07_18-15-45.log

<java.version>11.0.8</java.version>
<java.vendor.version>AdoptOpenJDK</java.vendor.version>

from gcviewer.

chewiebug avatar chewiebug commented on July 28, 2024

Hi @adrixtacy

GCViewer relies for performance and complexity reasons on the presence of the "tags" and "level" information in the java unified logs generated by JDK 11 VMs (https://openjdk.java.net/jeps/158). Your logs are missing both (this part of the configuration:
-Xlog:gc*:file=/<path-to-file>:time,uptime:...).

The readme gives examples of configurations, which GCViewer at this time is able to process:

  • -Xlog:gc:file="path-to-file" (uses defaults)
  • -Xlog:gc=info:file="path-to-file":tags,uptime,level (minimum configuration needed)
  • -Xlog:gc*=trace:file="path-to-file":tags,time,uptime,level (maximum configuration supported, additional tags ok, but ignored; additional decorations will break parsing)

If you just add "tags" and "level" to your configuration, GCViewer should be able to parse your log files.

Best regards,
Jörg

PS: The "Contents" you omitted from your initial description of the error was the crucial part of the error message :-).

from gcviewer.

adrixtacy avatar adrixtacy commented on July 28, 2024

Thank you so much Jörg ! I can confirm it works now after adding "tags" and "level"

I have raised a bug in Atlassian's issue tracker here : https://jira.atlassian.com/browse/JRASERVER-71420

from gcviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.