Questions tagged [java-opts]

80 questions
3
votes
1 answer

How to set up Gradle proxy variables in gitlab-ci.yaml with JAVA_OPTS

I have the next code in .gitlab-ci.yml: before_script: - echo "systemProp.http.proxyHost=$PROXY_HOST" >> gradle.properties - echo "systemProp.http.proxyPort=$PROXY_PORT" >> gradle.properties - echo "systemProp.https.proxyHost=$PROXY_HOST" >>…
Valeriy K.
  • 2,616
  • 1
  • 30
  • 53
3
votes
0 answers

How to set JAVA_OPTS environment variable

I have a problem while doing SSL connection through spray. I got the following error: [SSLException:Unrecognized SSL message, plaintext connection?] and I found an answer here. So, how can I add the following to the JAVA_OPTS environment…
Nilesh
  • 2,054
  • 3
  • 23
  • 43
3
votes
2 answers

Cannot change tomcat configs in AWS through .ebextensions files

I am trying to increase Java heap size in tomcat in a Beanstalk application. For that, I created a YAML config file (named tomcat.config) as follows: option_settings: - namespace: aws:elasticbeanstalk:container:tomcat:jvmoptions option_name:…
3
votes
1 answer

Will CodeCache in JVM be flushed if -XX:+UseCodeCacheFlushing is not used?

I was monitoring the javaDB(derby) using jconsole, my java version is 1.6.0_27. As I read in this article, CodeCache is full. Compiler has been disabled: I thought the CodeCache will not be flushed without…
abuuu
  • 367
  • 3
  • 14
2
votes
1 answer

Tomcat Manager: Specific JAVA_OPTS for each webapp

On an Ubuntu Server 10.04 I have Tomcat6 installed. Additionally the Tomcat Manager is installed. Now there are 3 WAR-files containing different web applications. When I upload any of these WAR-files via tomcat manager, it gets auto-deployed and…
Joe Nazz
  • 21
  • 2
2
votes
1 answer

Unrecognized option: --add-opens when passed with _JAVA_OPTIONS

I am trying to fix the issue with running Nexus IQ scanner using Java 17 runtime. The error is java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class…
Kirill
  • 6,762
  • 4
  • 51
  • 81
2
votes
2 answers

What is the significance of '-client' for JAVA_OPTS

I am not an expert on JAVA_OPTS, but I am getting an error in my grails app related to Permgen space. Now I receive a recommendation from grails blog to set JAVA_OPTS to this value: JAVA_OPTS="-client -Xmx256M $JAVA_OPTS" I do understand the other…
openSource
  • 191
  • 2
  • 6
2
votes
0 answers

What will be the priority parameter?

If you define your JAVA_OPTS as such JAVA_OPTS: -Dprogram.name=run.sh -server -Xms2048m -Xmx4096 -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true What would be…
ASC
  • 137
  • 1
  • 9
2
votes
2 answers

Access environment variable in .conf file for spring boot app

I have set environment variable by executing the command export test=abcd I can see test=abcd when I run printenvcommand I have deployed a springboot.jar application and I am passing the JAVA_OPTS from the springboot.conf…
2
votes
1 answer

passing RUN_ARGS for spring boot application running as service in linux

I have followed instructions from spring-boot documentation and successfully deployed spring-boot as service in centos. All the following commands work sudo /etc/init.d/myapp start sudo /etc/init.d/myapp stop sudo /etc/init.d/myapp…
brain storm
  • 30,124
  • 69
  • 225
  • 393
2
votes
2 answers

"Picked up _java_options" message when installing application, but no envrironment variable is set

I'm using an exe file to install an application, but am running into a weird issue. When installing, I get a "Picked up _java_options" followed by a gibberish value with seemingly random characters. This leads to an error where the JVM for the…
LakeMichigan
  • 677
  • 1
  • 7
  • 12
2
votes
2 answers

how to read environment variable or property in logback.xml and print that property in every log line

I would like to read environment variable or property in every log line from logback.xml. Example if I hit echo "${FOO_INFO}" the result is "FOO_RESULT", this FOO_RESULT I need to print it in the every log line. After adding…
SSSR
  • 21
  • 1
  • 4
2
votes
2 answers

tomcat installed as service - how to set JAVA_OPTS non-interactively

I am trying to add an option to the JAVA_OPTS on a windows tomcat installed as a service. I can achieve that with using an out-of-box tomcat I can also achieve that with a tomcat service installation through using the gui which is…
max
  • 9,708
  • 15
  • 89
  • 144
2
votes
2 answers

How to set JAVA_OPTS for tomcat on FreeBSD?

I received OutOfMemoryError: PermGen space error. I run tomcat using command: /usr/local/etc/rc.d/tomcat7 start I am trying to increase PermGen space (JAVA_OPTS="-XX:PermSize=256m -XX:MaxPermSize=256m"). I tried to add this string to next…
Escander
  • 256
  • 3
  • 19
2
votes
1 answer

PS Old Gen is full and my application slows down

During medium user load, my Tomcat application slows down very much and I am forced to restart Tomcat in order to permit users to work. The specs of the system are: Centos 5.4 64bit with 8GB RAM Tomcat 6 A Bonita BPM webapp - which utilizes many…
tmanolatos
  • 932
  • 10
  • 16