Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory requirements for WildFly

I never found an official documentation about it and I generally install WildFly 8.x on servers with, at least, 4GB.

How much memory should my server have in order to run a WildFly instance?

Is there a minimum recommended?

like image 822
cassiomolin Avatar asked Nov 04 '14 11:11

cassiomolin


People also ask

How much memory does WildFly use?

After Wildfly started, it takes 1.7 GB of memory and it increases to 1.8 GB in a short time.

How do I check my WildFly memory usage?

If you've created an admin user (by running add-user.sh in the bin directory) you can access the administration console at http://localhost:9990/console to see this information.

What is the difference between JBoss and WildFly?

JBoss EAP is just a commercial build of the Wildfly project. In many ways, especially from a source code perspective, JBoss and Wildfly are the same thing. “Wildfly is the upstream project JBoss EAP is built on,” said James Falkner, technical product manager for Red Hat Runtimes.

Can I use WildFly in production?

It is an open-source application server released under the GNU Lesser General Public License (LGPL), which means it is free to use and distribute. It is managed by Red Hat. We can use WildFly for both development and production purposes.


2 Answers

The minimum value of Xmx is the one that let you start an empty instance of WildFly. On my try, it is 24 MB. There is no other valid value for a minimal Xmx. 4g is a totally arbitrary value. It's absolutely depending on your application, on the number of user,...

You have to run a stress test on your application and measure the memory. It is the only way to know the minimum for your application.

like image 85
Alexis Hassler Avatar answered Sep 24 '22 19:09

Alexis Hassler


That depends on your application requirement. In general I would recommend 4GB as a minimum. Note that you should have enough memory for the OS and it's caches. Some small applications run perfect with <1GB for WildFly some need >32GB as they have lots of data.

So it's on you and you should test and measure it.

like image 39
wfink Avatar answered Sep 25 '22 19:09

wfink