Questions tagged [java]

Programming language and runtime environment that allows compiled Java programs to run unchanged on most hardware and software platforms

1835 questions
6
votes
1 answer

Running some benchmarks using ab, and tomcat starts to really slow down

I'm running some benchmarks using apache bench for a java app that is running on tomcat. Say I run a test like: ab -c 10 -n 10000 http://localhost:8080/hello/world It will run just fine. If I follow it with: ab -c 50 -n 50000…
codecompleting
  • 513
  • 1
  • 4
  • 14
6
votes
5 answers

Cannot create Java VM on OpenVZ

I'm constantly encountering an error related to Java and certificates on my Ubuntu server running in OpenVZ when installing things from apt-get. I'm pretty sure it has to do with how Java allocates memory. I know the fail counter for privvmpages is…
6
votes
5 answers

How do I fix a 'Failed to retrieve RMIServer stub' JMX error?

I just completed a migration from Windows server 2008 R2 to Ubuntu 10.04. I manage a java application (Java 6, Tomcat) that is having some performance issues. I'd like to use JMX to try and troubleshoot, but I can't seem to get jvisualvm to…
GregB
  • 1,382
  • 2
  • 13
  • 22
6
votes
1 answer

how to uninstall JDK on centos x64 linux based system

I tried installing JDK in my CentOS x64 web server, it looks like I have made a hash of things :(... Now, how do I uninstall JDK 1.6.0_26 in Centos x64 linux? Regards, Arvind.
Arvind
  • 501
  • 4
  • 9
  • 18
6
votes
2 answers

Why are there so many processes running?

I host several Rails applications on a VPS using Ubuntu 8.04, Nginx, Passenger, Mysql, RVM, so all the usual suspects. In the last days it was the first time I really had to debug a problem and look at which processes are running. I could fix the…
Manuel Meurer
  • 263
  • 1
  • 3
  • 12
6
votes
4 answers

Crashing my disk using Java

I have a Java program that must do the following 3 things: Download a file from a website. Run the file trough testA and testB (both in java) Delete the file and save the test results on the disk. That is done for roughly 1,000,000 different…
Phadek
  • 61
  • 2
6
votes
5 answers

OpenJDK vs. Sun Java6 on Ubuntu

Due to past (bad) experience resulting from the GCJ stuff being provided by default on certain distributions, I've always traditionally installed the official Sun Java package on servers. On Ubuntu it's been easy but now OpenJDK is a preferred…
Mark Renouf
  • 1,373
  • 2
  • 16
  • 22
6
votes
1 answer

Alternatives for heapdumps creation with higher performance than jmap?

I have to create heapdumps, which works nice with jmap. My problem is, that jmap takes very long to create the heapdump file. Especially when the heap is getting bigger (> 1GB) it is taking too long. One situation as example: When the server gets…
Christian
  • 4,703
  • 2
  • 24
  • 27
6
votes
2 answers

How to Handle Sudden Burst in New HTTPS Connections?

I've got a fleet of Java Vertx servers behind a load balancer that handles spikey traffic. One minute it may be handling 150k r/m, the next it may be handling 2mm r/m, then right back down to 150k r/m. I'm finding that during these spikes, the…
micah
  • 221
  • 1
  • 5
5
votes
4 answers

Java EE plugin for Eclipse IDE

I am using Eclipse 3.5.1. There is no option called web-->Dynamic web project. Should I install any plugin for Java EE? If so, please provide me the plugin.
Warrior
  • 223
  • 1
  • 5
  • 11
5
votes
1 answer

What does "GC (Allocation Failure)" mean in my ElasticSearch 5.6 logs?

I see these constantly in my Elasticsearch 5.6.3 logs. Is this a signal that I should scale up and add more RAM? Or is this just normal operations for ElasticSearch? [GC (Allocation Failure) [ParNew Desired survivor size 11141120 bytes, new…
5
votes
1 answer

What is the /dev/urandom equivalent on Windows JVM level

Recently, I run into troubles because the lack of entropy and blocking rand IO caused hangs. On Linux, I can do the following: JAVA_OPTS=-Djava.security.egd=/dev/urandom ./myStartScript.sh What is the equivalent on Windows? We are running the app…
pydoge
  • 165
  • 1
  • 5
5
votes
4 answers

How to run IPMI consoles now that NPAPI plugins are no longer supported?

I have a Tyan S5533 motherboard which serves as my NAS drive. It has a dedicated IPMI NIC, but I cannot start up the Java console since Firefox 52, Chrome/Chromium no longer support NPAPI plugins. I even tried the Firefox ESR, but that didn't work…
Inxsible
  • 341
  • 1
  • 4
  • 13
5
votes
2 answers

Java issue driving me crazy

I get this error when I try to open an specific .jnlp file: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. The application has not been initialized, for more information execute javaws from the…
gasparmenendez
  • 63
  • 1
  • 2
  • 6
5
votes
1 answer

How to restart java app managed by systemd on OutOfMemory errors

I have the java app (on top of Spring Boot framework) installed as systemd…
qwazer
  • 207
  • 1
  • 3
  • 7