Programming language and runtime environment that allows compiled Java programs to run unchanged on most hardware and software platforms
Questions tagged [java]
1835 questions
7
votes
2 answers
Nginx or Apache as web server in front of Tomcat (Java app)?
just wondering which web server between Apache and Nginx is better supported from Tomcat? I'm attracted in using Nginx for the single-threaded feature. I want to deploy a Java app running on HTTPS.
Cheers

sebarmeli
- 173
- 1
- 5
7
votes
1 answer
Tomcat Excessive Memory Consumption
I have a fresh server running Ubuntu 11.04 (Natty) (64-bit). I started off by installing openjdk and tomcat6. When the Tomcat server starts up, it immediately uses 480+ MB of memory. This seems way out of proportion and I'm wondering if anyone has a…

Tanner
- 193
- 2
- 5
7
votes
1 answer
Tomcat7 PPA for Ubuntu LTS 10.04.2
Does anyone know of a ppa / repo that will install tomcat7. I know I can install from source but I'd rather if possible use a PPA/Repo.
I found a nice one for suncoughoracle-java but there does not seem to be anything for tomcat7 as of yet.
I've…

telstone
- 159
- 10
7
votes
6 answers
Configure an IP address instead of localhost:8080 tomcat eg:192.260.0.2:8080
Can anyone suggest me how to configure my localhost:8080 in tomcat to connecting to an IP address instead of localhost such that i access my localhost in any system in my workplace... i am using tomcat6 and netbeans 6.9.1

dude
- 181
- 1
- 1
- 4
7
votes
3 answers
Sending email using SMTP (Gmail) from Hudson CI
How can I set up Hudson CI so that I can send out emails from the server following a build failure? At the moment all I get is the following error:
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first
One…

jensendarren
- 383
- 2
- 12
6
votes
1 answer
Started task in z/OS lacks RACF privileges
I wish to test a JDBC server implementation running under z/OS. The usual approach would be to define a JCL procedure and run this as a started task. The started task requires a user ID under which it would run. The JDBC jars are placed in a ZFS…

Achim Schmitz
- 161
- 3
6
votes
2 answers
ERROR 2006 (HY000): MySQL Server Has Gone Away... (HaProxy / Galera)
I setup a cluster of 3 MariaDB servers in a multi-master setup which is working fine. I added a 4th server for HaProxy to load balance and round robin so that we can have a little redundancy which is also working, except for 1 issue.
I am logged…

Hatem Jaber
- 163
- 1
- 7
6
votes
4 answers
which JVM is best for Tomcat?
I have Tomcat 6.0 up and running. I went to tweak the memory sizes and realized that I have it running on the Sun JDK 1.6 client JVM. I don't have the Sun server JVM installed:
C:\>java -client -version
java version "1.6.0_16"
Java(TM) SE Runtime…

Jason S
- 626
- 1
- 16
- 28
6
votes
4 answers
Java on Linux insufficient memory even though there is plenty of available memory being used for caching
I’m trying to start a process on Red Hat Enterprise Linux Server release 6.5 (Santiago), which is failing because it is not able to allocate sufficient memory.
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot…

notdazedbutconfused
- 93
- 1
- 1
- 5
6
votes
1 answer
Jetty JMX setup for remote access
I am having some issues getting JMX working on Jetty(9.1.3.v20140225), so I have had a read over the Jetty doco on this.
So I have added the following to the jetty.conf
# ========================================================
# jetty.conf…

djo
- 397
- 2
- 4
- 12
6
votes
8 answers
Deployment and monitoring tools for java/tomcat/linux environment
I'm a developer for many years, but don't have tons of experience in ops, so apology if this is a newbe question.
In my company we run a web service written in Java mainly based on a Tomcat web server. We have two datacenters with about 10 hosts…

Ran
- 191
- 1
- 4
6
votes
1 answer
how do i detect which version 32 or 64 bit Java is installed in Centos?
I am trying to detect which version of the java is running in my system (i mean i want to find out whether my java installation is 32 bit or 64 bit)
I have tried
$java -version
which outputs following
java version "1.6.0_24"
OpenJDK Runtime…

mahen3d
- 4,342
- 14
- 36
- 57
6
votes
2 answers
Linux (non-transparent) per-process hugepage accounting
I've recently converted some java apps to run with linux manually-configured hugepages, as described here. I point out "manually-configured" because they are not transparent hugepages, which gave us some performance issues.
So now, I've got…

Dan Pritts
- 3,221
- 26
- 28
6
votes
1 answer
Java process (OpenDS) consumes all cpu (futex flood) - how to debug futex?
Today I noticed that my LDAP server (OpenDS) consumes 100% CPU on every available core. Fast diagnose showed me that there is a lot of ETIMEDOUT during the futex lock.
How Can I debug it to figure out what is happening and how to fix…

bluszcz
- 409
- 1
- 6
- 16
6
votes
2 answers
Clearing Java certificates cache (force reload certificates)
A simple question here.
One application gave me this exception when trying to access a website with a expired certificate: java.security.cert.CertificateExpiredException
So, I renewed the certificated from the website machine and restarted it. When…

Alberto Fernández
- 171
- 1
- 1
- 5