Questions tagged [java-opts]

80 questions
1
vote
1 answer

How to set up JAVA_OPTS for AspectJ to work in Tomcat running as a service on a Windows Server?

Problem I need to integrate AspectJ code into an existing application running on Tomcat, but I think I am not setting JAVA_OPTS correctly. Our vendor has created some AspectJ code that passes logged in user id information to the CONTEXT_INFO()…
Viriato
  • 2,981
  • 7
  • 40
  • 54
1
vote
1 answer

Using different hadoop-mapreduce-client-core.jar to run hadoop cluster

I'm working on a hadoop cluster with CDH4.2.0 installed and ran into this error. It's been fixed in later versions of hadoop but I don't have access to update the cluster. Is there a way to tell hadoop to use this jar when running my job through the…
Josh Bradley
  • 4,630
  • 13
  • 54
  • 79
1
vote
1 answer

Why does Tomcat not start when including JAVA_OPTS Xmx?

I have Tomcat 7 on my local Windows 7 machine. When I include -Xmx in my catalina.bat file for JAVA_OPTS Tomcat does not start. But runs if it is removed. What could cause this to happen? Is my syntax wrong? catalina.bat file: set JAVA_OPTS=-Xms128m…
dnelson
  • 467
  • 1
  • 4
  • 16
1
vote
1 answer

Get or check JAVA_OPTS

I set environment for Apache Tomcat (through setenv.sh) export JAVA_OPTS="-XX:PermSize=256m -XX:MaxPermSize=356m" How can I check this params in JSP or Apache Tomcat Manager Page? I want to be sure that options are working correctly.
indapublic
  • 2,208
  • 9
  • 38
  • 49
1
vote
1 answer

I set tomcat's JAVA_OPTS -Xss=128k, then I got this Spring ERROR

I modified the init script of tomcat(catalina.sh)——set the JAVA_OPTS as below : JAVA_OPTS="-server -Xms8g -Xmx8g -Xmn3g -Xss128K -Dj ava.awt.headless=true". Then I started the tomcat and its log got this Spring ERROR: "2012-08-10 16:40:20.697 ERROR…
Benjamin
  • 53
  • 1
  • 8
1
vote
1 answer

Java_opts settings for a program

I need to set Java_opts memory things for only one Java app. My program is a Maven project. Is there any way that I can just set it to my program, not the whole environment?
lucky_start_izumi
  • 2,511
  • 13
  • 41
  • 61
0
votes
0 answers

Hive and hive server2 not starting

I am trying to setup hive in my local machine, using apache_hive_2.3.7 and apache_hadoop_3.3.6. When I try to run hive getting below error: [sgopi@localhost v2.3.7]$ hive /usr/bin/which: no hbase in…
Gopi
  • 689
  • 1
  • 8
  • 17
0
votes
1 answer

How to use Java options in Spring Boot pom file?

I am getting an error when I try to run the integration test (@SpringBootTest) in my application. I got a solution to use below the Java option --add-opens java.base/java.nio=ALL-UNNAMED I have checked it by editing the run configuration and it is…
Chetan
  • 63
  • 1
  • 8
0
votes
0 answers

Unable To Reach Local ArcadeDB-Studio on ArcadeDB-Docker-Container with Gremlin-API Enabled

What are the details of your problem? I'm unable to access ArcadeDB-Studio when trying to connect to Gremlin-API-enabled ArcadeDB-Docker-container. I don't understand why this would make its Studio unavailable. Is there another step I missed when…
Zach
  • 539
  • 1
  • 4
  • 22
0
votes
0 answers

Unrecoverable error handling admin request in wiremock

We have wiremock "crashes" when sending big amount of data to create new mappings and I was wondering if there is a way to prevent it. (other way than not sending big amount of data xD) Unrecoverable error handling admin…
Tom
  • 355
  • 4
  • 13
0
votes
1 answer

Helm yaml command output for the default value of JAVA_OPTS_APPEND in bitnami/Keycloak

Could anybody please help me understand this command - What would be the output of this key -value pair: JAVA_OPTS_APPEND: {{ printf "-Djgroups.dns.query=%s-headless.%s.svc.%s" (include "common.names.fullname" .) (include "common.names.namespace" .)…
nafi
  • 55
  • 2
  • 9
0
votes
2 answers

My container has a correct date and timezone. But my tomcat is getting one hour more than I configured. How to fix wrong time in tomcat 9 container?

I am trying to make it run setenv.sh to load some JAVA_OPTS but is it not loading nothing. My Tomcat start a .war files using springboot for start my application. The problem here is that it is not loading correct timezone on java and it is not…
0
votes
1 answer

JVM Threaddump OnOutOfMemoryError Unrecognized option

I want to collect a thread dump when an OutOfMemory error occurs. I add this option on my run.conf script : JAVA_OPTS="${JAVA_OPTS} -XX:OnOutOfMemoryError=/bin/kill -3 %p" But at startup I have : Unrecognized option: -3 Could not create the Java…
user2178964
  • 124
  • 6
  • 16
  • 40
0
votes
0 answers

After configmap configures java_opts parameters,k8s always reports wrong parameters;

kubernetes version: 1.18.6 Dockerfile jdk:1.8_231 Dockerfile content: FROM harbor.testcbi.com/base/centos-jdk8-ast MAINTAINER dailiang WORKDIR /data COPY cbp-user-1.0.0.jar /data/ COPY bootstrap.properties /data/ EXPOSE…
ming
  • 1
0
votes
0 answers

Python Subprocess call to invoke java jar files with JAVA_OPTS

I am trying to make a subprocess call from my python script to a java class built inside a jar. I am running the python code on a docker container in AWS Batch. I set the CLASSPATH environment variable in the Dockerfile to include the directory…
Sharanya
  • 74
  • 7