Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes
Our self hosted MDM has been running flawlessly for months now however yesterday my monitoring system alerted me it wasn't responding but after a restart of the tomcat9 service it came back.

According to my tests, this machine only ever hits 50% RAM usage.

Is there a limit of how much memory Java is being allocated? We're currently using a machine with 4GB RAM.
by (37.5k points)

1 Answer

0 votes
Please try updating the memory limits in CATALINA_OPTS in the Tomcat 9 service script. Here's how to: https://www.techbeginner.in/2021/08/how-to-increase-jvm-memory-for-tomcat.html
by (37.5k points)
You don't have an existing file in this directory

( sudo nano /etc/systemd/system/tomcat.service )

Did you manage to add more memory? Following the tutorial, it doesn't work. From the 1st command, I don't no existing file.
Try /etc/systemd/system/tomcat9.service
Not working. tomcat9.service does not exist. And yet, the service works perfectly. ^^


root@MDM:/home/mdm# ls /etc/systemd/system
 bluetooth.target.wants
 cloud-final.service.wants
 dbus-fi.w1.wpa_supplicant1.service
 dbus-org.bluez.service
 dbus-org.freedesktop.Avahi.service
 dbus-org.freedesktop.ModemManager1.service
 dbus-org.freedesktop.nm-dispatcher.service
 dbus-org.freedesktop.resolve1.service
 dbus-org.freedesktop.thermald.service
 dbus-org.freedesktop.timesync1.service
 default.target.wants
 display-manager.service
 display-manager.service.wants
 emergency.target.wants
 final.target.wants
 getty.target.wants
 graphical.target.wants
 multi-user.target.wants
 network-online.target.wants
 oem-config.service.wants
 paths.target.wants
 printer.target.wants
 rescue.target.wants
 sleep.target.wants
 snap-bare-5.mount
 snap-core20-1494.mount
 snap-core20-1518.mount
'snap-gnome\x2d3\x2d38\x2d2004-106.mount'
'snap-gnome\x2d3\x2d38\x2d2004-112.mount'
'snap-gtk\x2dcommon\x2dthemes-1534.mount'
'snap-gtk\x2dcommon\x2dthemes-1535.mount'
 snap-snapd-15904.mount
 snap-snapd-16010.mount
'snap-snap\x2dstore-558.mount'
 sockets.target.wants
 sshd.service
 sysinit.target.wants
 syslog.service
 teamviewerd.service
 timers.target.wants
You need to find a script starting tomcat as service and update it. This is a general Linux question, not related to MDM.
Ouch. This is beyond my skills I think. I do not understand why, having followed your tutorial to the letter, he did not enter the service. And that the MDM works perfectly on the test phone. I do not do this manipulation suddenly, knowing that I am afraid to find a script that breaks the installation (which works today)
For you, there would be no other alternative to modify the use of the ram? Without doing this service manipulation, which I am unfortunately unable to do... Thank you
Headwind MDM is the Tomcat web application. It cannot modify Tomcat RAM usage.
I don't understand what I could have failed in configuring tomcat and H-MDM from the install script. :(
...