Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Linux Server swap memory problem

I have the same problem on all servers running Java processes. I have lots of available memory. But my swap is full of Java-related pages. But the system never cleans its swap, Java pages stay there &...
Eduardo's user avatar
0 votes
0 answers
54 views

Hadoop Namenode heap size tuning

NameNode process is executed in Java virtual machine, and Java object which NameNode creates is managed in Java virtual memory. As the fles or directories are created, inode objects and block objects ...
yael's user avatar
  • 13.7k
2 votes
0 answers
364 views

Java process getting terminated in Redhat by SIGTERM from Systemd

I'm starting a Java process using nohup and & (running it in the background). This process gets terminated frequently. There is no pattern on when it is getting terminated. From the application (...
Raghu's user avatar
  • 121
1 vote
1 answer
2k views

Refer another Java version in a systemd service file

I have an application which requires JAVA_HOME environment to be set for a successfull running. On the RHEL server, however the current version of java points to "openjdk version "1.8.0_302&...
Karan Nayyar's user avatar
0 votes
0 answers
3k views

How to verify the enabled Ciphers through OpenSSL in RHEL 8.5

Our Java Application is functioning on RHEL 8.5 OS platform with TLSv1.2 protocol. Here, to improve the security, We want to enable only a few ciphers and need to block others. CIPHERS TO BE ENABLED: ...
Learner's user avatar
  • 21
1 vote
0 answers
1k views

how to set the value of Hive Metastore heap size

we have hadoop cluster ( based on ambari platform ) , when hive metastore installed on two machines Sometime during job running ( we runs the queries from presto ) we saw job failure due to heap size. ...
yael's user avatar
  • 13.7k
0 votes
1 answer
222 views

RHEL7 - very long start times on JRE

I'm using RHEL7, and I've ran into problems with Pycharm where it takes a very long time to start, a few minutes. According to the logs, it's mostly waiting for the JRE/JVM to start. So I tried to ...
wile_e8's user avatar
  • 111
0 votes
0 answers
627 views

javac -version command not found error in rhel 7.3

I followed this documentation to install java-1.8.0-openjdk-1.8.0.272.b10-1.portable.jdk.el.x86_64.tar.xz into RHEL 7.3. In section 2.4. Installing OpenJDK on RHEL using an archive, at the last step, ...
MightStackier's user avatar
0 votes
1 answer
368 views

Couldn't load JVM and says cannot open shared object file

created a brand new Linux VM on azure cloud. Installed JDK 1.8 and setup the JAVA_HOME path also. When running a vendor provided command it says Error 58000: Couldn't load JVM: /usr/lib/jvm/java-11-...
Malaiselvan's user avatar
1 vote
1 answer
5k views

alternatives java -OpenJDK RHEL

I have the following setup (on multiple machines with RHEL7): $ which java /usr/bin/java $ ls -ltr /usr/bin/java /usr/bin/java -> /etc/alternatives/java $ ls -ltr /etc/alternatives/java /etc/...
dejanualex's user avatar
0 votes
0 answers
581 views

How to search for dependencies for Java 8 yum install?

I inherited ansible playbook that installs java 1.8.0_181 via yum module on rhel server. My plan is to upgrade to java 1.8.0_221. While reviewing the playbook, I noticed it would install copy-jdk-...
DaeYoung's user avatar
  • 885
0 votes
2 answers
3k views

java -version and $JAVA_HOME display wrong information

I have a RHEL 7 server. Installed java version is jdk1.8.0_151 # ls -l /usr/java total 0 drwxr-xr-x. 8 root root 255 Apr 24 14:10 jdk1.8.0_151 I set JAVA_HOME location and added bin directory to ...
Pradeep Sanjeewa's user avatar
0 votes
1 answer
285 views

JVM memory + dose heap size Xmx values have impact on consuming memory

we have linux redhat machines with service ( service is based on java ) for now service consume 1.5G memory , and the heap size set to Xmx2G let say we increase the heap size to Xmx10G dose this ...
yael's user avatar
  • 13.7k
0 votes
1 answer
3k views

download java-1.8.0-openjdk-devel from epel repo

we have redhat machine - version 7.2 we installed the epel repo as the following rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install epel-release yum ...
yael's user avatar
  • 13.7k
2 votes
1 answer
605 views

systemctl stop not stopping all process in redhat

I am starting a service using systemctl ,but I am facing issue to stop the service in redhat system. the service file I am creating : [Unit] Description=/home/agenttest After=syslog.target [Service] ...
shaunakmandal's user avatar
0 votes
0 answers
1k views

java.net.SocketException: Network is unreachable on my Red hat 7 linux Server

So I have a java app on a linux red hat server that is accessing login.microsoftonline.com and graph.microsoftonline.com. I can curl those domains and they respond. I have imported the certs for ...
Daniel Haughton's user avatar
0 votes
2 answers
3k views

yum + dependencies not logical when installing openjdk

we are tryng to install the java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm yum localinstall java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm Loaded plugins: langpacks, product-id, ...
yael's user avatar
  • 13.7k
1 vote
1 answer
6k views

jstat not found even though we installed java JDK

We installed the following RPMs (part of the Java development kit), on Red Hat Enterprise Linux 7.5: $ rpm -qa | grep jdk java-1.8.0-openjdk-headless-1.8.0.171-8.b10.el7_5.x86_64 java-1.8.0-openjdk-1....
yael's user avatar
  • 13.7k
2 votes
3 answers
12k views

How to completely uninstall java from RHEL?

When I do which java I get the following output: which java /dir/java/bin/java I have already uninstalled java rpm using the following `rpm -qa | grep -i java` rpm -e rpm-name Still java is not ...
meallhour's user avatar
  • 181
1 vote
1 answer
638 views

MySQL Java connector still using old java version?

Installing mysql-connector-java-8.0.15-1.el6.noarch.rpm (available here ) shows libgcj package as a dependency. Installing libgcj creates below file: /usr/bin/gij $/usr/bin/gij -version java version ...
penguin's user avatar
  • 109
1 vote
2 answers
2k views

How do I run Jenkins with a specific working directory and a specific user account?

I am executing below jenkins.war with below command jenkins -jar jenkins.war But I want to specify to use below path while executing the war `/data/jenkins` and it should run as jenkins user . ...
Zama Ques's user avatar
  • 3,376
1 vote
1 answer
10k views

Process running out of open file handles

My application which is based on two Java processes that interchange data over a http connection runs ouf of files and produces this error message: Aug 14 11:27:40 server sender[8301]: java.io....
Marged's user avatar
  • 791
1 vote
0 answers
603 views

How to find evidence of performance issues caused by too many threads on linux

We have a RHEL 5 server, with 16 CPU cores, that runs a number of Java processes that get batch jobs submitted to them. Each java process has about 80 threads that are used to process these jobs. ...
Dave Evans's user avatar
0 votes
2 answers
9k views

what is the repo in order to install jar file on redhat 7

what is the repo ( under /etc/yum.repo.d ) , in order to install jar command ? yum install jar Loaded plugins: langpacks, product-id, search-disabled-repos, subscription- manager This system is ...
jango's user avatar
  • 423
1 vote
1 answer
3k views

Getting different default java versions for different users in linux

how to set different versions of java to different users in Linux for example if we login as root then the default java version must be jre-1.8.141 and if we login as the normal user say (rob) then ...
Mugunth's user avatar
  • 11
0 votes
1 answer
1k views

RPM database not seeing file installed as part of RPM

Intro: The following was done on a RHEL 6.9 32bit OS. I installed the oracle (not openjdk) version of JRE rpm using the rpm -Uvh command. I then built a package using rpmbuild that requires ...
jgr208's user avatar
  • 918
-1 votes
1 answer
63 views

SSL Certificate not showing when request is sent to the application

i have a java keystore which 2 certificate chains has been installed. a CSR was generated and signed by a CA and both certificate with corresponding CA's were installed. however when i send a request ...
bismark's user avatar
  • 11
3 votes
1 answer
22k views

Why do I see "Unable to locate tools.jar. Expected to find it in ...." when I run ant (on RHEL 6.6) even though the path is set [closed]

I created a script in /etc/profile.d and named it jdk_home.sh. The contents of jdk_home.sh are as follows : #!/bin/sh export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::") export ...
a_sid's user avatar
  • 247
2 votes
2 answers
17k views

Permission denied to cacerts file - SSL

I have installed a Red Hat 6.8 machine, on which I have installed a certificate on the default keystore 'cacerts' successfully. When trying to invoke a software which is using SSL and is trying to ...
Guy Tabak's user avatar
2 votes
0 answers
1k views

task java:14736 blocked for more than 120 seconds

I have a Java EE application running in Red Hat 6 with Java 7 and Wildfly 9. The application has been running well sometimes, suddenly the response time makes the application unusable and I have to ...
Diego Ferreira's user avatar
4 votes
2 answers
54k views

How to verify if Java is installed on rhel

I stood up rhel VM. I was curious if JDK is installed or not so that I ran a command from a shell (bash). whereis java It returned: java: /usr/bin/java So I navigated to the path in order to ...
DaeYoung's user avatar
  • 885
0 votes
1 answer
313 views

redhat + how to find the oracle JRE version 1.7 from redhat site

I am searching the JRE 1.7.x version from red-hat site by yum command bot not find anything yum list | grep java | grep "1.7" | grep -i jre no such patch or maybe redhat not hold JRE 1,7 patches?...
yael's user avatar
  • 1,527
1 vote
1 answer
5k views

Jre installation have no /usr/bin/java file?

I need to install a specific older version of JRE on a RedHat machine. So I downloaded jre-1_5_0_10-linux-i586.rpm and copied it into /opt/local. Then I ran sh ./jre-1_5_0_10-linux-i586-rpm.bin and ...
user5313398's user avatar
0 votes
1 answer
214 views

Java problem - RHEL

I have RHEL in a test environment and I wanted to install a program that initiates a script that mandates java. The script tests for Java binaries folder. I tried first to choose the java/bin ...
Amjad Abdullah's user avatar
0 votes
2 answers
967 views

java installation in RHEL

while installing java in redhat i'm facing some problems..i've attached the screen print. i unzipped the file using tar command .once i created the softlink for it ,i should be able to see java ...
Abhishek Akkatangerhal's user avatar
1 vote
0 answers
837 views

Java related error met when installing COMSOL

I would like to install a software called COMSOL on Redhat (Red Hat Enterprise Linux Server release 6.4 (Santiago)) cluster. COMSOL is designed as a Windows software, and its installation requires X ...
Pu Zhang's user avatar
  • 111
0 votes
1 answer
449 views

When I execute a .run file as <user> it works fine. If I sudo run it, it cannot detect Java

I am trying to execute a .run file that will install some applications. I'm installing the application in /opt/... When I run it without sudo, the installer runs correctly but cannot write to /opt/. ...
Nilly's user avatar
  • 3
1 vote
0 answers
947 views

java version not found in redhat

My OS is redhat linux. It's having the default java 1.4.2, but I need java 1.7.45, for that I am trying as follows: /usr/sbin/alternatives --install /usr/bin/java java /u01/java7/bin/java 5 /usr/sbin/...
harsha's user avatar
  • 11
2 votes
0 answers
1k views

How can the RES memory reported for a Java process be higher than the VIRT memory?

I've been monitoring a Java process (Oracle Weblogic) using TOP and have observed that sometimes the following will happen: RES will increase from it's usual stable level of 2,097,152 KB up to almost ...
Anon Gordon's user avatar
1 vote
1 answer
1k views

Problem running "selinux sandbox" with java

I am trying to sandbox a java application using selinux sandbox. System details: Redhat 6 | x86_64 | no x server install | jdk7 from oracle tar.gz version | cgred and cgconfig are stop The cmd ...
Bhuvan's user avatar
  • 109
0 votes
1 answer
2k views

screen command cannot find java executable

I'm trying to execute java from screen: screen -S my-java-app -d -m 'java -jar -Xms512m -Xmx2048m my-java-app.jar' but seems that screen does not know the java command. Running java without screen ...
To Kra's user avatar
  • 653
1 vote
1 answer
1k views

OpenJDK update in RHEL 6

We need to apply the JDK updates to one of the RHEL 6 servers. How do I apply the patch if I have the RPM package available, which I have downloaded from the internet. Searched a lot on the internet ...
5hr4y's user avatar
  • 11
2 votes
0 answers
657 views

Java plugin not working with FireFox 24.3.0 on Red Hat Enterprise Linux 5.10

In the about:plugin tab, there is not Java plugin. I have created the symbolic link as suggested. The output of the 'ls -al' command is: lrwxrwxrwx 1 shehab shehab 58 Jun 4 11:21 libnpjp2.so -> ...
Omar Shehab's user avatar
3 votes
2 answers
5k views

Hugepages in linux - how to make sure that java process will start using hugepages

I'm running java server on Red Hat Enterprise Linux Server release 5.9. Recently I started to use HugePages as it has some advantages I would like to use. System was configured correctly (as many ...
user2722116's user avatar
1 vote
1 answer
340 views

CentOS5, RHEL5, Java dependent Packages, Alternate JVM/JDK

Specifically regarding Java dependent packages, such as ant. Is it possible to install them via rpm, when using an alternate JVM/JDK? For example, If I install the Oracle JDK, can I use an ant ...
J. M. Becker's user avatar
  • 5,009
2 votes
1 answer
4k views

How to force a particular version of Java?

I am on a RHEL 5.5 64 bit box. The systems engineer installed the 64-bit Java VM under /usr/bin ; however, I needed a 32 bit VM which he installed in /opt/jdk1.6.0_35. But now, everytime I do java -...
roymustang86's user avatar
67 votes
4 answers
972k views

How to find path where jdk installed?

I've installed jdk1.7.0.rpm package in RHEL6. Where I do find the path to execute my first java program?
Mohammad Faisal's user avatar