Questions tagged [java-opts]

80 questions
2
votes
3 answers

How to specify JAVA_OPTS for solr?

I am using on apache solr3.6 (naive user) and have data in the multicore of solr folder. D:\setup\apache-solr-3.6.0\example\multicore The current version of tomcat I am using has startup.bat in its bin folder so I specified JAVA_OPTS in it as…
veer7
  • 20,074
  • 9
  • 46
  • 74
1
vote
2 answers

Unable to set JAVA_OPTS variable -Dweceem.config.location for Weceem Grails CMS

I am trying to have Weceem (Grails CMS) installed locally on my machine (Windows XP), but I am having a really hard time setting the JAVA_OPTS variable -Dweceem.config.location. My environment is as follows: Java 6 with JAVA_HOME environment…
Viriato
  • 2,981
  • 7
  • 40
  • 54
1
vote
0 answers

Find a replacement for -Xbootclasspath/p option when using jdk 11

I am upgrading to jdk 11 and from what I've noticed, the -Xbootclasspath/p option no longer exists. I've tried replacing it with -Xbootclasspath/a, I've also tried using --patch-module(although I've read that it's not recommended in production) or…
Andreea
  • 11
  • 1
1
vote
1 answer

Write a cron expression in docker-compose.yml environment

I am struggling to put cron expression 0 */1 * ? * * * into docker-compose.yml as environment variable.. I tried to escape * with backslash, also " and ', but no luck. cont1: image: some-image restart: unless-stopped volumes: -…
1
vote
1 answer

Manage build profiles/configs for Spring Boot application

I have written application using spring boot + scala with sbt and now I need to divide build configurations for dev and prod. What has been done: created configs application.yml and application(-dev/prod).yml to start application locally, on dev and…
1
vote
2 answers

How to set custom environment variables in tomcat?

I have few key- value pair variables in my program which is hard coded now. String pswd = StringUtils.defaultString(System.getProperty("KEY_STORE_PASSWORD"), "password"); String algorithm =…
1
vote
1 answer

How to get name of jar from which class is loaded at runtime by JVM in Java 11

I used JAVA_OPTS -Xlog:class+load=debug (inside Tomcat 9 startup.bat), though it is showing the class name but it shows source as source: __JVMDefineClass__. Is there any way I can know the name of Jar, like it showed in JAVA 8? For e.g in JAVA 8:…
NiTiN
  • 81
  • 1
  • 9
1
vote
0 answers

Method tracing on OpenJDK or Oracle JDK

Does OpenJDK or Oracle JDK have a feature like "method trace" on IBM JDK? Should I use AOP (for example, AspectJ)?
Kohei TAMURA
  • 4,970
  • 7
  • 25
  • 49
1
vote
1 answer

How can I edit Tomcat options using Powershell?

I'm developping a (humble) script to edit Tomcat options in powershell. It's installed as a service and I'm running this as an administrator (for now). I think the problem is when I execute the Set-ItemProperty with several options. After that, the…
ant
  • 11
  • 6
1
vote
1 answer

how to find out the configured maximum of java heap size?

I am working on windows system and configure the maximum of java heap size in my java application like this: JavaOptions= -Xmx6G in the .proberties file. Question 1: How to verify that this change is taking place? is it possible from the cmd?…
Ronald
  • 2,721
  • 8
  • 33
  • 44
1
vote
1 answer

What additional java options it is possible to specify in advanced android build settings?

In Xamarin Docs there is JavaOptions packaging property. Its description says "Specifies additional command-line options to pass to java when building the .dex file". But there is no any example. In what form these parameters can be passed? Also…
ichernob
  • 357
  • 2
  • 13
1
vote
1 answer

How to increase the MaxPermSize on the OpenShift environment? I am having trouble starting the jboss

I am new to OpenShift, and I am having trouble deploying my application, and it seems to be because I don't have enough MaxPermSize, which is set to 102m. When I start the jboss I have this type of logs, loading the various services. 2014/12/30…
1
vote
2 answers

Configure Http Proxy for Wildfly 8.1.0

How to configure a HTTP-Proxy for Wildfly 8.1? The Wildfly Instance is running as standalone on RHEL 6.5. The machine has no direct access to the internet but one of the deployed applications should use an existing HTTP Proxy (without…
NorRen
  • 711
  • 2
  • 9
  • 22
1
vote
1 answer

Why does jruby complain about valid java_opts

I have set my java min/max heap size to be the same as outlined in the Sun Docs for precise heap sizing using the following: -Xms768m -Xmx768m This works fine when I start tomcat, but if I run jruby from the command line it complains saying: Error…
brad
  • 31,987
  • 28
  • 102
  • 155
1
vote
2 answers

Setting JAVA_OPTS in windows using command prompt

I am running the java program on windows server 2012, I want to set the JAVA_OPTS variable and use it, here is how I am doing it: Open a command prompt in the bin of jdk where it is installed ,and executing the following command : $set JAVA_OPTS =…
user1907849
  • 960
  • 4
  • 19
  • 42