Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase heap memory for WildFly?

WildFly 8 is started on a linux server with standalone.sh. I noticed that the server was started with very few heap memory space.

I need to increase the heap memory space for the server and for applications, which are running on the server. How can I do it?

like image 535
Manuela Avatar asked Jul 25 '14 15:07

Manuela


People also ask

How do I check my Wildfly memory?

1 Answer. Show activity on this post. 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. The console defaults to a different port - 9990 - than the "normal" 8080 port.

How much heap memory can we increase?

The theoretical limit is 2^64 bytes, which is 16 exabytes (1 exabyte = 1024 petabytes, 1 petabyte = 1024 terabytes). However, most OS's can't handle that. For instance, Linux can only support 64 terabytes of data.


1 Answers

Just edit bin/standalone.conf, look for the first occurrence of JAVA_OPTS and change the -Xmx option according to your needs.

like image 174
Harald Wellmann Avatar answered Sep 28 '22 18:09

Harald Wellmann