Using HugePages and -XX:+AlwaysPreTouch makes sure that all memory is
allocated immediately.
We've been using this for years to make sure our Java processes get
access to all memory that would eventually be needed by the heap,
metaspace, etc.
Especially in order to avoid the effects of any
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Calder,
On 4/1/20 08:52, calder wrote:
> (BTW, I hope you're not running TC as the root user. I see
> references to the root user in your CLI output)
Great catch!
Jim, the first think you should do without doing anything else is stop
running at
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Jim,
On 3/31/20 23:57, o haya wrote:
> I think I figured out what is going on. I think that the
> parameters were working all right, but the memory that is shown by
> the "free" command isn't corresponding to the JVM memory.
>
> I put together a
On Tue, Mar 31, 2020 at 10:57 PM o haya wrote:
> I think I figured out what is going on. I think that the parameters were
> working all right, but the memory that is shown by the "free" command isn't
> corresponding to the JVM memory.
[ snip ]
You beat me to the punch. Linux "free" cannot be
Hi,
I think I figured out what is going on. I think that the parameters were
working all right, but the memory that is shown by the "free" command isn't
corresponding to the JVM memory.
I put together a small JSP that uses Runtime.getRuntime().totalMemory() and
.freeMemory() and and when I
Hi,
BTW, in the catalina.out log file, I do see these lines:
01-Apr-2020 01:53:17.775 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dfile.encoding=UTF-8
01-Apr-2020 01:53:17.775 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command
Hi,
I have Tomcat installed in /apps/apache-tomcat-9.0.20/
In the /apps/apache-tomcat-9.0.20/bin/setenv.sh, I have:
#!/bin/bash
JAVA_HOME=/apps/jdk1.8.0_221
CATALINA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server \
-Xms4096m -Xmx4096m -XX:NewSize=256m -XX:MaxNewSize=256m
On 31/03/2020 17:42, o haya wrote:
> Thanks for the infos.
>
> I was thinking the same thing you were thinking, that it might be 32-bit
> JVM, but when I run "java -version" I am getting:
>
> java -version
> java version "1.8.0_221"
> Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
> Java
Thanks for the infos.
I was thinking the same thing you were thinking, that it might be 32-bit
JVM, but when I run "java -version" I am getting:
java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11,
On 31.03.20 17:02, o haya wrote:
> Hi,
>
> I am running Tomcat 9.02 under RHEL 7 (under Oracle JDK 1.8), and I would
> like to increase the memory that is available to Tomcat when it is running.
>
> I have tried sourcing the following:
>
> JAVA_OPTS="-Djava.awt.headless=true
Hi,
I am running Tomcat 9.02 under RHEL 7 (under Oracle JDK 1.8), and I would
like to increase the memory that is available to Tomcat when it is running.
I have tried sourcing the following:
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server \
-Xms4096m -Xmx4096m -XX:NewSize=256m
11 matches
Mail list logo