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

Application Crashing #444

Closed
amravisharma opened this issue Jan 24, 2019 · 13 comments
Closed

Application Crashing #444

amravisharma opened this issue Jan 24, 2019 · 13 comments
Labels
bug Bugs

Comments

@amravisharma
Copy link

My application is crashing with elastic-apm-agent. I using java 8 with embedded jetty and running the application from eclipse with following arguments to JVM.

-javaagent:D:\tools\elastic-apm-agent-1.2.0.jar -Delastic.apm.service_name=gridmind-apm-service -Delastic.apm.application_packages=com.oati,com.oati.scada,com.oati.mastercontroller -Delastic.apm.server_urls=http://localhost:8200

@felixbarny
Copy link
Member

I'm sorry to hear that. What error do you get? Could you attach the debug logs of the agent?

Pro tip: you only need application_packages=com.oati. This includes all sub-packages.

@amravisharma
Copy link
Author

image.

Are you asking for application debug log? it will be too big to attach as application run for 2-3 minutes before crashing and it happens only if I use elastic-apm-agent as JVM argument

@amravisharma
Copy link
Author

This is how it is crashing.

@felixbarny
Copy link
Member

felixbarny commented Jan 24, 2019

Could you send me the hs_err_pid<pid>.log? Also, could you send me the output of java -version so that I can see the exact Java version you are using?

@amravisharma
Copy link
Author

amravisharma commented Jan 24, 2019 via email

@felixbarny
Copy link
Member

Hi, it would be great if you could send me the logs :)

@amravisharma
Copy link
Author

@amravisharma
Copy link
Author

Sorry for the delay. Actually we no longer need this functionality so didn't invest more on this but fyi I was able to run it successfully when executed the application from command line. application crashed only if I ran directly from eclipse.

@felixbarny
Copy link
Member

You are using a fairly old build of Java 8 (1.8.0u25). I would advise to update to the latest version (currently 1.8.0u201). That would likely fix the problem.

Are you interested in trying this out our is that not relevant to you anymore?

@amravisharma
Copy link
Author

amravisharma commented Feb 8, 2019 via email

@felixbarny
Copy link
Member

It would be great if you could try that out.

My guess is that you have a different (older) JVM version configured in Eclipse.

@amravisharma
Copy link
Author

amravisharma commented Feb 8, 2019 via email

@felixbarny
Copy link
Member

Cool, thanks for confirming that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs
Projects
None yet
Development

No branches or pull requests

5 participants