Go to All Forums

Memory usage on FreeBSD

Hey there,
we just configured the server monitoring on our FreeBSD server. But the agent reports there is a memory usage of always above 85%. We have 8 GB of RAM / memory installed on the server. Right now we are using Zabbix also on the server. Zabbix shows us a usage of roughly < 50% of the memory. Why is there such a big difference? Why is Site24x7 reporting such a high usage? The command "top" on our server shows us right now the data like this "Mem: 1098M Active, 4204M Inact, 2189M Wired, 4376K Cache, 828M Buf, 456M Free" There you can see that 4204M is inactive and 456M is free. Zabbix adds the inactive memory to the free memory, while Site24x7 only takes the free memory, which is causing the alerts. Any solutions?

We wanted to write this to support, but everytime we are sending the message an error occurs.
Like (1) Reply
Replies (4)

Hi Schroeder,

Our FreeBSD server monitoring agent uses "sysctl -n hw.physmem" and "vmstat -H"  commands to get information about the total and free memory values. Memory utilization is calculated based on the output of the above commands. Hence, there is a difference in Memory utilization values between Site24x7 and the top command/Zabbix.

We are analyzing the possibility of implementing the top command output to fetch the memory utilization information from FreeBSD servers. I will update further on this post after our analysis. 
Like (0) Reply


Hi Schroder,

As Sriram has posted above, we are currently analyzing the possibility of using the top command to get the memory utilization information. 

We understand that there were some difficulties in contacting our support team. Hence, we request you to share the details of the error that occurs when you write to our support team for our reference. 

Here are some of the alternate options to contact our support team:

i) When you are logged into Site24x7, you can click the Question Mark icon, near the user profile picture shown in the top right corner -> click 'Ask Support' to get in touch with our support team. 

ii) Similarly, you can click the 'Feedback' icon in the product in the bottom-left corner to share your feedback or raise an issue with our support team. 

iii) You can also use the form provided in our Contact Support page in our website the below link to get in touch with our support team:

iv) You can submit a support ticket in our customer portal directly in the below link:

You can use any of the above options to raise a ticket with us. 
Like (0) Reply

Hi Schroeder,

We have included some changes in the script file that is used for data collection to use top command for fetching the memory utilization information. We request you to perform the below steps and update us with the status:

i) Stop the Site24x7 Server monitoring agent using the below command:
/etc/rc.d/site24x7monagent stop

ii) Please go to /opt/site24x7/monagent/scripts directory and rename the script.sh file to script_old.txt

iii) Download the attached script.zip file and extract it for the new script.sh file. Please copy the script.sh file to /opt/site24x7/monagent/scripts directory

iv) Start the Server monitoring agent using the below command:
/etc/rc.d/site24x7monagent start

Let the Server monitoring agent run for some 30 minutes and check the memory utilization values fetched. Please let us know if the Memory Utilization is shown as expected. 
Attachments
script.zip
Size: 3.52 KB
Like (0) Reply

Was this post helpful?