So you're using SolarWinds Storage Manager (STM), storage monitoring tool and you get an OutofMemory or PermGen Memory error message. What do you do? The solution can be as simple as stopping the Storage Manager service, changing or adding and argument in an .ini or .sh file, and restarting the service. So, here is what you do with your storage performance monitoring tool, STM if the error occurs.

 

Stop the agent or server service:

  • Windows: Stop the STM Agent Service.
    Stop the Collector service if you are dealing with the STM server.
  • Linux: To stop the agent or server, use command
    /etc/init.d/storage_manager_agent stop.
    Stop the storage_manager_server if you are on the STM server.

 

Add or Change an argument:

         

For OutOfMemeory error messages

    •   Increase the -Xmx value to the desired memory value
      Example: -Xmx=1024M


     For PermGen error messages

    • Add -XX:MaxPermSize=256M to the beginning of the EXT_ARGS list.

Example: EXT_ARGS=-XX:MaxPermSize=256M -Xrs -Xms67108864 -Xmx


Finding the files you need to edit:    

  • On Windows:
    STM Agent:<Storage Manager install directory> \SolarWinds.Storage.Agent.ini

Collector service:  <Storage Manager install directory> \webapps\ROOT\bin\SolarWinds.Storage.Collector.ini

  • On Linux:

STM Agent: <Storage Manager install directory> /Storage_Manager_Agent/bin/storagemanageragent.sh

Collector service: <Storage Manager install directory>/Storage_Manager_Server/bin/collector.sh


Start the agent or server service:

  • Windows: Start the STM Agent Service.
    Start the Collector service if dealing with the STM server.
  • Linux: To start the agent or server, use command
    /etc/init.d/storage_manager_agent start
    Start the storage_manager_server if you are on the STM server.


And the memory problem should be resolved on your storage performance monitoring software, STM. Let me know if this solution helps (or not).

This blog is reworded from the KnowledgeBase article, Resolving OutofMemory and PermGen Memory Issues.