SOLVED 700mb RAM USAGE - /usr/lib/jvm/jre-1.8.0/bin/java

MotazHakim

Member
Oct 12, 2021
22
3
3
Egypt
cPanel Access Level
Root Administrator
Hello
I've just installed cPanel/WHM
and just created an account and i did nothing else
So, i noticed the server RAM Usage is high since my server has 2GB Ram,
and i've run top command and Java was taking 39% of the ram - screenshot attached
Screenshot 2021-10-12 212446.png

and attached another screenshot of the process with high memory usage
Screenshot 2021-10-12 212618.png

and since i'm only will use the server as mail server, do i need java and perl ?
if not, then how to disable them?

Thanks.
 
Last edited by a moderator:

Daniel12345

Member
Apr 6, 2021
13
1
78
cPanel
cPanel Access Level
Root Administrator
Good day, MotazHakim!

Perl is required in order for cPanel to run, but you are free to remove Java if you do not plan on using Tomcat or Solr.

You can uninstall Java with the following command, but be sure to uninstall Tomcat and/or Solr if they are installed first:
Code:
yum remove java-headless
 

MotazHakim

Member
Oct 12, 2021
22
3
3
Egypt
cPanel Access Level
Root Administrator
Good day, MotazHakim!

Perl is required in order for cPanel to run, but you are free to remove Java if you do not plan on using Tomcat or Solr.

You can uninstall Java with the following command, but be sure to uninstall Tomcat and/or Solr if they are installed first:
Code:
yum remove java-headless
@cPanelDaniel
Thanks for your reply
Regarding Perl, it's only taking 100mb , nothing to wrorry about
i've Solar installed, will uninstall it them will uninstall java

Thanks again for your reply and your help
 

MotazHakim

Member
Oct 12, 2021
22
3
3
Egypt
cPanel Access Level
Root Administrator
Glad I could help!

Feel free to update this thread if you encounter any issues during this process and I would be happy to assist you further.
Thanks again.
now I've only 400MB ram usage for the server
and most of them in this tasks

Bash:
61.5898 MB              /usr/sbin/mysqld
114.828 MB              spamd
116.496 MB              spamd
117.805 MB              /usr/local/cpanel/3rdparty/perl/532/bin/perl
 
  • Like
Reactions: cPRex