AMP RAM java settings?

OS Name/Version: Debian GNU/Linux 11 (bullseye)

Product Name/Version: AMP 2.3.2.4

Problem Description:

I moved from a very buggy MineOS to AMP and I created a VM with headless Ubuntu server 20.0.4 I allocated 6MB of RAM (Mineos was in a docker)
I then provided the same Java RAM as before 2G RAM and everyone got disconnected
I then when and added Java Ram to:

Memory limit is set to 4096 MB

No options?

And its running now no disconnects but the usage repported is way above the settings?

I have never had above 10 users on the server

So do I need some extra settings? or is AMP just needing more RAM?

Thanks for a great product! MineOS caused me so many other problems!
And your search function is a life saver!

Nothing is wrong here and this is normal. There’s no such thing as a ‘memory limit’ - what you’re setting is javas maximum heap size for the java virtual machine. Java also has its own overheads on top of that.

Thanks Mike!
So if I set a memory limit for the whole VM like here: 6144 MB
Then setting the Javas maximum to 4096 MB would provide 2048MB for overhead and the OS?
Would that be okay?

Is there a minimum requirement that should be left alone for the OS/Overhead?

Total VM - Java MX - OS/Overhead - Some minimum recommended values?
Sorry just want to make sure I have enough overhead to run everything OK

That sounds about right :slight_smile:

I just changed my CPU cores and my RAM to higher settings on my VM and now I get this message when trying to change the boot to autostart?

Is this some Software security because AMP thinks I am running on new HW?

Quite possibly, check that instances logs to see what’s up.

I have read that the start and update breaks auto start! So I have disabled that now
But I still cant change my properties setting this is what I get:


(I hope this is what you meant by instance logs)

Reboot the system. To get to the instance logs, right click it and select “view logs”.

Thanks Mike for trying to help, only ben running AMP for a week
Didn’t know you could right click on a game server :slight_smile:

So after trying to set auto start in the UI I get this notification (That never goes away)
image

And the logs after the reboot dont say much?

[20:19:34] [Core Info]            : Running in a Docker environment.
[20:19:34] [Core Info]            : OS: Linux / x86_64
[20:19:34] [Core Info]            : CPU: Intel(R) Xeon(R) E-2176G CPU @ 3.70GHz (2C/4T)
[20:19:34] [Core Info]            : AMP Instance ID: 122ca383-303b-4f0e-bc11-1d0d30823cdf
[20:19:35] [ModuleLoader Info]    : Loaded MinecraftModule version 1.0.0.3 by CubeCoders Limited
[20:19:35] [Core Info]            : Metrics publishing is enabled at udp://localhost:12820.
[20:19:35] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[20:19:35] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[20:19:35] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[20:19:35] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[20:19:35] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[20:19:35] [Core Error]           : Invalid setting node: CustomPort
[20:19:35] [Core Info]            : Licence Present: AMP Professional Edition (Licenced to Henrik Caspersen)
[20:19:35] [Core Info]            : -configonly specified or activation performed. Saving settings and shutting down. This is perfectly normal.

I cant see it writes anything after me trying to change the settings?
Just to make sure there wasnt any ownership problems I did run the as root:
ampinstmgr fixperms

UPDATE: I just tried to change auto start on one of the other servers same error?
(When setting them up I could turn auto start op and off) so something have changed?
only thing I can think of is me changing CPU cores and RAM on the VM)

BUT I can start the server and its running and people can connect to it…

Are you using controller+target mode or standalone?

Just a standalone everything running on the VM AMP/Games etc.
The game servers run fine! But I cant change “Auto start in settings” on any of the servers
Just tried to change settings to “suspend” I got the same error but it did suspend the server?

The notifications are there because it cant update any changes to the settings
only a complete reboot stops the notifications

Check the ADS logs instead then. Something has gone wrong somewhere…

Thanks Mike!
I thought that was the ADS logs? - Right click view logs
But when I access the VM I only have instances/ADS01

Thanks again for helping, its really strange problem?
Is there any way to do a re-install and keep all the settings and game servers?

Each instance has its own set of logs. ADS (the management interface) has its own set of logs.

Reinstalling doesn’t fix anything, AMP isn’t like a normal application and this can actually make things worse.

If the files aren’t there under “Instances” then something has gone wrong with your system and deleted the instance data.

Instances (show hidden files)
image

This is what I see under instances

That’s fine then - so you want to look in the ADS01 log files.

Learning new things! - just hope its a problem that is “fixable”

So this is what’s in the ADS01

But the AMP logs isn’t that what I accessed from the UI view logs?

AMP LOG:

[07:10:36] [Core Info]            : Running in a QEMU KVM environment.
[07:10:36] [Core Info]            : OS: Linux / x86_64
[07:10:36] [Core Info]            : CPU: Intel(R) Xeon(R) E-2176G CPU @ 3.70GHz (2C/4T)
[07:10:36] [Core Info]            : AMP Instance ID: 6dc88959-5872-4b03-87d4-d1f0b5222308
[07:10:37] [ModuleLoader Info]    : Loaded ADSModule version 1.0.0.0 by CubeCoders Limited
[07:10:37] [ModuleLoader Info]    : Loaded FileManagerPlugin version 1.0.0.0 by CubeCoders Limited
[07:10:37] [ModuleLoader Info]    : Loaded EmailSenderPlugin version 1.0.0.0 by CubeCoders Limited
[07:10:37] [ModuleLoader Info]    : Loaded WebRequestPlugin version 1.0.0.0 by CubeCoders Limited
[07:10:37] [ModuleLoader Info]    : Loaded LocalFileBackupPlugin version 1.0.0.0 by CubeCoders Limited
[07:10:37] [ModuleLoader Info]    : Loaded CommonCorePlugin version 1.0.0.0 by CubeCoders Limited
[07:10:37] [ModuleLoader Info]    : ADSModule requests dependency InstanceManagerPlugin...
[07:10:38] [ModuleLoader Info]    : Loaded InstanceManagerPlugin version 1.0.0.0 by CubeCoders Limited
[07:10:38] [ModuleLoader Info]    : ADSModule requests dependency SystemUserManagerPlugin...
[07:10:38] [ModuleLoader Info]    : Loaded SystemUserManagerPlugin version 1.0.0.0 by CubeCoders Limited
[07:10:39] [ModuleLoader Info]    : Loaded steamcmdplugin version 1.0.0.0 by CubeCoders Limited
[07:10:39] [Core Info]            : Metrics server started OK on port 12820
[07:10:41] [FileManager Notice]   : Using keypair with fingerprint xFutHSIvFa+OmNwin1jXkvcCtiJykQ0GkgzJacZwJlE=
[07:10:41] [FileManager Info]     : SFTP Server started on 0.0.0.0:2223
[07:10:41] [WebServer Info]       : Websockets are enabled.
[07:10:42] [Logger Warning]       : RouterTimer@10Hz with 2 jobs started
[07:10:42] [WebServer Info]       : Webserver started on http://0.0.0.0:8080
[07:10:42] [Core Info]            : Checking for AMP updates...
[07:10:42] [Core Info]            : AMP is up-to-date.
[07:12:55] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (GSMyAdmin.WebServer.GetActiveAMPSessions) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:62691)
[07:13:01] [Core:admin Info]      : 0675d2bc6f24ecdcd01170e8e1660f23bded8afc2528c58751a9310dccdf75f0
[07:14:00] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (ADSModule.GetInstances) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:62733)
[07:14:03] [ADS:admin Activity]   : Managed remote instance SPEEDZONE_1 at http://127.0.0.1:8081/
[07:14:03] [Auth:admin Activity]  : Authentication token for admin requested by ManageInstance on behalf of admin
[07:14:07] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (GSMyAdmin.WebServer.GetActiveAMPSessions) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:62749)
[07:15:00] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (ADSModule.GetInstances) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:62760)
[07:17:52] [ADS:admin Activity]   : Managed remote instance SPEEDZONE_1 at http://127.0.0.1:8081/
[07:17:53] [Auth:admin Activity]  : Authentication token for admin requested by ManageInstance on behalf of admin
[07:17:55] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (GSMyAdmin.WebServer.GetActiveAMPSessions) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:62942)
[12:34:49] [ADS:admin Activity]   : Managed remote instance SPEEDZONE_1 at http://127.0.0.1:8081/
[12:34:49] [Auth:admin Activity]  : Authentication token for admin requested by ManageInstance on behalf of admin
[12:34:53] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (GSMyAdmin.WebServer.GetActiveAMPSessions) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:64714)
[13:05:42] [InstanceManager:admin Info] : Stopping instance SPEEDZONE_1...
[13:05:47] [InstanceManager:admin Info] : Instance SPEEDZONE_1 has stopped.
[13:05:48] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (ADSModule.GetInstances) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:49227)
[13:05:54] [Core:admin Info]      : 3bd5212baf029a32786d68d17ce56026ae7626f9296c2bc342f9e1240882d14a
[13:06:00] [APIService:Anonymous Warning] : Access denied: You do not have permission to use this method (ADSModule.GetInstances) at this time. This method requires the Session.LoggedIn permission. (Origin: 192.168.0.6:49229)
[13:06:35] [Core:admin Info]      : Stop requested: AMP restart requested via API
[13:06:35] [Core Notice]          : AMP shutdown requested.
[13:06:35] [Core Notice]          : Stopping Application...
[13:06:40] [Core Notice]          : Stopping Web Server...
[13:06:40] [WebServer Info]       : Web server shutdown.
[13:06:40] [Logger Warning]       : RouterTimer@10Hz stopped
[13:06:40] [Core Notice]          : Goodbye!
Rest in peace - Stephen Hawking 1942-2018

These logs are accessible in the web interface, but only via the file manager.

So try and do the reconfiguration again, and check the latest log file for ADS.

Sorry Mike I can only see the AMP_logs in the File manager UI (That I also pasted above)
No ADS logs?

ADS is the name of the instance, ADS01. You want to look at AMP_Logs inside the ADS instance.