Removal of heap dump

Certified Associate Developer

HI everyone ,

Is it safe to remove the unnecessary heap dump files from the bin folder without stopping the services? If I delete these files, will it cause any issues? We've resolved the heap memory problem, and the application is functioning properly, but I need to clean up the storage.

Thanks,

Udhaya

  Discussion posts and replies are publicly visible

  • +1
    Certified Associate Developer

    Hey  ,

    Great question! The short answer is yes—you can safely delete those unnecessary heap dump files from the bin folder, and doing so won’t disrupt the application or services as long as everything is functioning properly now.

    Heap dump files are typically created when there’s an out-of-memory (OOM) error or for debugging purposes. Since you’ve already resolved the memory issue and your application is running smoothly, they’re just taking up storage at this point.

    A few things to keep in mind:

    No Need to Stop Services: Removing these files won’t impact the running processes since they’re not actively used by the application once created.
    Backup, If Needed: If you want to play it safe, you can back up the heap dump files elsewhere before deleting them—just in case you need to revisit them later for analysis.
    Automate Cleanup: For the future, consider setting up a script to periodically clean up these files to avoid manual intervention.
    Out of curiosity, have you been analyzing these dumps for debugging, or was it just about freeing up storage?

    Let me know if there’s anything else I can help with!"

  • 0
    Certified Associate Developer
    in reply to naveenkumar11800

    Hello Naveen ,

    Thank you for the response  ,  I had removed around 98 GB of heap dumps and it saved a lot of memory