Skip to content

Profiler causes the application to not exit [randomly] #34

@iamKunal

Description

@iamKunal

Running on JDK 14:

When running an application with the profiler enabled, once the application shuts down, I get a log with On VM death after the last log of the application and the application does not exit. Tried exiting explicitly with System.exit() as well.

This has happened on 2 separate occasions on 2 separate applications.

Args for running: -agentpath:${GCP_PROFILER_JAVA_AGENT}=-cprof_service=${APP_NAME},-cprof_project_id=${PROJECT_ID},-logtostderr,-cprof_enable_heap_sampling=true

I am running it inside GKE with WorkloadIdentity enabled if that is of any concern (it automatically picks up the zone name, so metadata server might not be a problem).

Also:
I do not get the subsequent logs for Exiting the profiling loop and Heap sampling GC waiting thread finished which I get when the application exits normally.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions