Question about the memory usage of Dataverse

46 views
Skip to first unread message

joe chow

unread,
Apr 20, 2022, 3:42:40 AM4/20/22
to Dataverse Users Community
Hi everyone,

I am working on a test with Dataverse v5.5 on a Centos 7 server with 8gb ram. After installing the Dataverse and forcing HTTPS, I created some Dataset and Dataverse, and then used multiple webdrivers to perform login test. The following is the test:
1. Open a new tab and visit the homepage of the Dataverse
2. Open a new tab, go to loginpage.xhtml, login using a builtin account.
3. Close the browser
After running the above tests for several hours, the available memory of the server drop to a very low level (Around 100-300mb left), and I found that Java uses up the memory of the server. Is it a normal situation?
java_mem_20220420_1536.PNG
Also, as the available memory of the server drop to quite low, will it cause any problem to the Dataverse and the Payara server? Also, is it fine to edit the jvm-options for Xmx in /usr/local/payara5/glassfish/domains/domain1/config/domain.xml to limit the maximum amount of memory used by Dataverse (The value is Xmx3715m now). If it is possible, is there any lower limit for it? Will lowering this value affect the performance or the stability of the Dataverse and the Payara Server?

Thanks,
Joe

Donald Sizemore II

unread,
Apr 22, 2022, 8:34:43 AM4/22/22
to Dataverse Users Community
Hello,

If you're specifying a 3715M Xmx value, and I'm reading the graph correctly, it looks like Payara is using its heap, as expected.
Are you looking at buffered/cached memory usage vs. free? Linux caches heavily so I'm not surprised to see most of the RAM in use.

I personally wouldn't attempt to run Dataverse in fewer than 16GB of RAM with an 8GB JVM heap, though you could get by with 8GB of RAM and a 4GB heap on a test server.

I hope this helps,
Don

joe chow

unread,
Apr 25, 2022, 5:31:45 AM4/25/22
to Dataverse Users Community
Thank you very much, Don.


I did the test again and check for cached memory vs free. Most memory is used and it seems that there will be problem to the server easily with such a low free memory remaining.
ram_stat1.PNG


Thanks,
Joe


don.si...@gmail.com 在 2022年4月22日 星期五下午8:34:43 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages