Questions tagged [java]

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

1835 questions
8
votes
1 answer

nginx is running but not serving?

I've been trying to set up nginx as a proxy to jetty. I have one laptop running ubuntu server. Now I made jetty working at localhost:8080 and it serves the home page for the app at http://192.168.1.5:8080/my-webapp-0.1.0-standalone/. I configured…
Zeynel
  • 181
  • 1
  • 1
  • 6
8
votes
3 answers

How can I install a headless JDK on an Ubuntu Jaunty server?

I recently set up a build server that requires a JDK to run (for example, to compile the Java sources). The OpenJDK package in Ubuntu pulls in the OpenJDK JRE as a dependency which, in turn, depends on a large number of packages that are only…
Hanno Fietz
  • 1,022
  • 2
  • 13
  • 24
8
votes
1 answer

Linux Huge Pages Usage Accounting

I have configured Huge Pages for use with Java and it appears to be working well although I have a question about the accounting in /proc/meminfo. To illustrate # grep HugePages /proc/meminfo AnonHugePages: 274432 kB HugePages_Total: …
8
votes
2 answers

How to prevent slow responding Tomcat from making Apache slow to respond?

I have a site that consists mostly of static html pages with occasional ajax requests. The site is running on Apache, ajax is handled by Tomcat. If Tomcat becomes slow to respond (java cannot connect to a database server, or just taking a long time…
serg
  • 245
  • 1
  • 3
  • 7
8
votes
1 answer

Tomcat: possible to exclude jars during app deployment?

By default, Tomcat prevents webapps from loading several .jars which are part of the Tomcat distribution (eg the servlet and JSP APIs) - is it possible to configure others to also be excluded? If it can't be done with configuration alone, does…
Dmitri
  • 181
  • 1
  • 3
8
votes
5 answers

Suggestions for free/cheap asset/patch management software (Adobe, Java, etc)

I am using WSUS for Microsoft patching but would like something that will inventory and patch Adobe, Java, Firefox, Quicktime, etc. I have used Lumension in the past and it was OK but it is too expensive. I have used Kaseya and don't like it.…
ThorinOak
  • 81
  • 1
  • 2
7
votes
1 answer

Install Java 9, 10, 11, or 12 on FreeBSD 11.1

When I look to my up-to-date Ports collection: cd /usr/ports/java && ls -d openjdk* … I see only versions 6, 7, and 8 of Java in the OpenJDK releases: openjdk6 openjdk6-jre openjdk7 openjdk7-jre openjdk8 openjdk8-jre ➥ How does one…
Basil Bourque
  • 851
  • 1
  • 11
  • 22
7
votes
3 answers

Java: Limit the number of cores a JVM can use

Multiple users are running java applications on a 60-core compute server (Linux/Ubuntu-based). There are different applications and most of them are not developed in-house. While the sysadmin thinks it is okay for a given user's Java process to use…
oggotron
  • 165
  • 2
  • 2
  • 3
7
votes
1 answer

How to switch between TLS 1.0 and SSL 3.0 at Java/JRE level?

I am using java 1.6. I have setup my tomcat as my ssl enabled server. And i have setup a ssl enabled client (java code). When i do a communication from my client to server. In java ssl dump in tomcat logs, I always see TLSv1 picked as SSL protocol…
Anita
  • 79
  • 1
  • 1
  • 2
7
votes
2 answers

Tomcat 8 hangs on startup while deploying webapp. Possibly related to entropy generation

I'm trying to get a tomcat webapp started and while just testing out the server (vanilla tomcat8 download) it seems to be hanging on startup. My guess is that it is hung up on something dealing with the SecureRandom class. I heard that tomcat can…
Sempus
  • 342
  • 1
  • 2
  • 11
7
votes
4 answers

How can I install WildFly 8.0.0.Final as service on Ubuntu Linux?

I am trying to install the WildFly 8.0.0.Final application server on a Virtual Machine running Ubuntu 12.04 LTS. I've done some searches on Google, but I found only third-party scripts and, I think, non standard ways to do this. Currently, to start…
humungs
  • 265
  • 3
  • 4
  • 8
7
votes
1 answer

permission denied to start tomcat as root

I just started using CentOS. I install Java yum install java-1.7.0-openjdk-devel Added a user: $useradd supersite Downloaded tomcat: $wget http://apache.mirror.anlx.net/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.zip $unzip…
Dejel
  • 195
  • 1
  • 1
  • 7
7
votes
1 answer

Running Jenkins standalone vs within Tomcat

What things should be considered when deciding between running Jenkins standalone or within Tomcat? We would prefer to not have to use Tomcat because there's no other applications on this server machine that would need Tomcat, so we would be setting…
user779159
  • 395
  • 1
  • 5
  • 10
7
votes
2 answers

Tomcat- How to check the memory settings currently in use

I have set up a Tomcat server using Server 2008 and IIS 7. How can I tell if the JAVA_OPTS environment variable is actually being used? I've heard before that the I have to edit the service.bat file in order to make the JAVA_OPTS environment…
OrangeGrover
  • 595
  • 3
  • 10
  • 25
7
votes
3 answers

Stopping Windows service does not kill processes (service uses ant)

I have a Windows service on Windows Server 2008 R2 that I set-up using instsrv on the srvany.exe executable. The three values in the Parameters key are set as follows: AppDirectory C:\selenium-grid Application C:\ant\bin\ant.bat AppParameters…
user35042
  • 2,681
  • 12
  • 34
  • 60