How to configure Glassfish to allocate different memory size for JVM per web application

I have 2 Java web applications deployed on my Glassfish Enterprise Server v2.1.1. I want each of them to have different configurations for JVM options, specially for memory allocation. I have studied this document. But it contains approach for specifying JVM options at the entire server level, while I want to do the same at … Read more

jruby web application deployed on glassfish server becoming slow as time passes

I have deployed war file of my jruby application on glassfish server. i have noticed that my application becomes slow as time passes. My server is of 30GB RAM but still application is very slow. Every ruby method in my application is creating array which contains around 1 millions of records. i think creating such … Read more

SQLite3 is crashing the JVM

I am using sqlite-jdbc 3.7.2 when i run my application, SQLLite is crashing the JVM. It is not happening consistently but it happened twice. Please help to find the issue. A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x01c60d18, pid=5731, tid=5888912 JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build … Read more

Elasticsearch: no JDK found… but JAVA_HOME seems set properly

When I’m trying to install elasticsearch (Ubuntu 16.04) I get the error message: elasticsearch[15885]: * no JDK found – please set JAVA_HOME But I have only one Java and I think JAVA_HOME is set properly… $ echo $JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 Answer This usually means when elasticsearch is starting up it cannot find the JAVA_HOME variable. You … Read more

JVM heap is being swapped causing GC go haywire – Tomcat

Info: # of VMs= 4, each with an instance of Tomcat 8.5.* in cluster Apps = 5 war applications- 2 UI applications and 3 Webservices. Java Version = java 1.8.* Configuratin = 2 LTMS and 2 Apache Webservers – 1 LTM on top of tomcat clusters which processes Webservice requests (200K+ a day during weekdays). … Read more

Why is the max heap much smaller than the value I set in Xmx (with -XX:+UseParallelGC -XX:+UseParallelOldGC)

I am running a SolrCloud on k8s with the following setting: Heap params: -server -Xms280m -Xmx312m Other params: -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:+UseAdaptiveSizePolicy -XX:ParallelGCThreads=4 -XX:AdaptiveSizePolicyOutputInterval=1 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:MaxGCPauseMillis=300 -XX:GCTimeRatio=19 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=128m -XX:MaxMetaspaceFreeRatio=90 -XX:MetaspaceSize=96m -XX:+ParallelRefProcEnabled And the max heap shown on the admin page is only 277.5m, which is 34.5m less than Xmx And if I change the … Read more