Forum Stats

  • 3,874,989 Users
  • 2,266,791 Discussions
  • 7,912,045 Comments

Discussions

Virtual Memory is taking too much of memory.

907035
907035 Member Posts: 73
edited Dec 17, 2013 4:00AM in Java Programming

Hello,

We have an monitoring application which consists only 5 java classes, This application monitors the files/reports in a particular folder for every 15min of data. In this we have one thread,which is used to monitoring and kept it sleep for 15 mins and again invoking.

When we look into the memory stats in machine, it is showing the virtual memory paramter as >3.5 GB and RSS of 70Mb only. We need to figure it out why virtual memory is taking that much amount of space.

This application is currently running on HP Unix server.

Suggestions/Help will be much appreciated.

Kind Regards,

Ravi

Tagged:

Answers

  • gimbal2
    gimbal2 Member Posts: 11,949 Gold Trophy

    Well good luck I guess. You don't give anything that would make it remotely possible to

    a) help you with anything

    b) have any indication that Java is in some way involved

    I highly doubt that this Java application is consuming 3.5gb of memory unless you specify to Java to create a minimum heap size that big (in which case I don't know why you're posting this, I assume you know what you're doing). It is likely going somewhere else.

  • jwenting
    jwenting Member Posts: 4,864 Gold Badge

    Sounds like you are creating a lot of objects, and not throwing them away when you no longer need them.

    With the data provided (none) there's nothing more anyone can say with any degree of certainty.

This discussion has been closed.