Author:
erics , January 21st, 2020
PROBLEM DEFINITION Bamboo Catalina error found in catalina.out:
- Djava . endorsed . dirs = / volumes / data / bamboo / current / endorsed is not supported . Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules .
Error : Could not create the Java Virtual Machine .
Error : A fatal exception has occurred . Program will exit .
SOLUTION SUMMARY Correct by using Java 8 instead. Do it manually using alternatives –set, or interactively using alternatives –config. MANUAL PROCEDURE – two steps, one for java and one for javac
alternatives -- set java / usr / lib / jvm / jre - 1.8.0 - openjdk . x86_64 / bin / java
alternatives -- set javac / usr / lib / jvm / jre - 1.8.0 - openjdk . x86_64 / bin / javac
INTERACTIVE PROCEDURE – two steps, one for java and one for javac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
root @ bamboo : / root # alternatives --config javac
There are 3 programs which provide 'javac' .
Selection Command
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+ 1 / usr / lib / jvm / java - 1.8.0 - openjdk . x86_64 / bin / javac
* 2 / usr / lib / jvm / java - 11 - amazon - corretto / bin / javac
3 / usr / lib / jvm / java - 1.7.0 - openjdk . x86_64 / bin / javac
Enter to keep the current selection [ + ] , or type selection number :
root @ bamboo : / root # alternatives --config java
There are 4 programs which provide 'java' .
Selection Command
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+ 1 / usr / lib / jvm / jre - 1.8.0 - openjdk . x86_64 / bin / java
2 / usr / lib / jvm / jre - 1.6.0 - openjdk . x86_64 / bin / java
* 3 / usr / lib / jvm / java - 11 - amazon - corretto / bin / java
4 / usr / lib / jvm / jre - 1.7.0 - openjdk . x86_64 / bin / java
Enter to keep the current selection [ + ] , or type selection number :
Categories: How-To's , Technology Tags: alternatives , Bamboo , Catalina , catalina.out , Config , Endorsed , Endorsed standards , howto , Java , Java 8 , java upgrade , java.endorsed.dirs , javac , set , tips , upgrade , Yum , yum update
| No comments
Author:
erics , June 17th, 2019
Latency-sensitive applications running in Java sometimes experience unacceptable delays under heavy I/O load. This blog discusses why this problem occurs and what to do about it for applications running Tungsten Clustering for MySQL.
Categories: Cluster , Heavy I/O Load , I/O , Java GC , JVM , Manager , Mastering Tungsten Clustering Tags: Clustering , Java , mysql , Speed , Tungsten
| Comments Off on Why is My Java Application Freezing Under Heavy I/O Load?
Author:
erics , March 28th, 2013
https://help.ubuntu.com/community/EC2APITools https://help.ubuntu.com/community/Repositories/CommandLine#Adding_the_Universe_and_Multiverse_Repositories As root in /root: vim /etc/apt/sources.list ## Added to the bottom: deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse apt-get update apt-get install sun-java5-jre apt-get install unzip wget http://s3.amazonaws.com/ec2-downloads/ec2-api-tools-1.3-34128.zip unzip ec2-api-tools-1.3-34128.zip export EC2_HOME=/root/ec2-api-tools-1.3-34128 export PATH=$PATH:$EC2_HOME/bin mkdir .pem Copy downloaded X.509 private key and cert into […]
Categories: How-To's , Technology Tags: AWS , cert , EC2 , Export , Hardy , Java , Multiverse , private key , RDS , Ubuntu
| No comments
Author:
erics , November 1st, 2011
Download the program from SourceForge: http://jperfmeter.sourceforge.net/
cd
unzip jperfmeter - 1.4.0.zip
Create a shell wrapper called jperf:
#!/bin/sh
java - classpath jperfmeter . jar : oncrpc . jar com . infineco . Perfmeter $ *
Here is how I invoke jperfmeter using a shell script called perfmon: perfmon script
#!/bin/sh
# perfmon - calls jperfmeter
( cd ~ / jperfmeter - 1.4.0 ; java - classpath jperfmeter . jar : oncrpc . jar com . infineco . Perfmeter $ * ) > / dev / null 2 > & 1 &
HINT: rpc.rstatd and jPerfmeter communicate using RPC via UDP – be sure to open your firewall to allow this.
Categories: How-To's , Technology Tags: howto , Java , jPerfmeter , Perfmeter , Perfmon , rpc.rstatd , rpcbind , rstatd , statd , tips
| No comments
Author:
erics , January 8th, 2011
Install the latest Sun version of the JDK and set $JAVA_HOME to it. # wget -O jdk-6u23-linux-i586-rpm.bin ‘http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u23-linux-i586-rpm.bin?BundledLineItemUUID=6vKJ_hCvsgsAAAEtIlQpGGh0&OrderID=oFmJ_hCvw1AAAAEtFVQpGGh0&ProductID=QhOJ_hCw.dUAAAEsFIMcKluK&FileName=/jdk-6u23-linux-i586-rpm.bin’ # sh ./jdk-6u23-linux-i586-rpm.bin # export JAVA_HOME=/usr/java/latest
Categories: How-To's , Technology Tags: howto , Java , JDK , Sun , tips , trustAnchors
| No comments