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

learn more… | top users | synonyms

2
votes
1answer
1k views

Which is more secure: Tomcat standalone or Tomcat behind Apache?

This question is not about performance, nor about load-balancing, etc. Which would be more secure: running Tomcat in standalone mode or running Tomcat behind apache? The thing is, Tomcat is written ...
2
votes
2answers
772 views

can you move the java installation to another directory?

I set the environment variable to setup JAVA_HOME. Problem is, java is installed in c:\program files\blah\blah\ (notice the whitespace in the folder path). so this works: "%JAVA_HOME%\bin\java" ...
2
votes
4answers
5k views

Where is my .profile file in Snow Leopard?

I am setting up Apache Tomcat on my OS X 10.6.2 and need to know where my .profile file is, for setting environment variables. I thought it was in the root of my home directory, but I cannot find it.
2
votes
3answers
2k views

How to determine SQL causing Oracle CPU Spikes

I have a J2EE Spring/Hibernate webapp using Oracle 11g for persistence, occasionally in production the Oracle CPU spikes to 100% usage, restarting Tomcat drops the Oracle CPU. I am unable to ...
2
votes
1answer
635 views

How to keep Java 7 up-to-date without losing JRE 6?

I have recently found out the hard way that Oracle has decided to silently nuke JRE 6 when a JRE7 update is installed. Is it possible to leave JRE7 on auto-update without breaking JRE6? If not, how ...
2
votes
2answers
2k views

JMX connection to Tomcat running on Amazon EC2

My Tomcat 7 process, which I run on a server on Amazon EC2, has settings such as these in CATALINA_OPTS which should allow me to connect for JMX monitoring remotely: ...
2
votes
3answers
8k views

iDRAC6 Virtual Media native library cannot be loaded

When attempting to mount Virtual Media on a iDRAC6 IP KVM session I get the following error: I'm using Ubuntu 9.04 and: $ javaws -version Java(TM) Web Start 1.6.0_16 $ uname -a Linux ...
2
votes
2answers
12k views

How do you install a JDK6 on Solaris10 sparc 64bits?

The installation steps of a JDK6 for: Solaris 32 bits Solaris 64 bits are quite straightforward but: are in two separate documents do not deal with local zone (container) installation do not ...
2
votes
3answers
2k views

Best way to deploy JRuby?

Background: I'm developing a Ruby web application, and have decided to switch to JRuby for several reasons that I'm not going to mention here. I have experience with servers such as Apache and ...
2
votes
2answers
1k views

What is your experience using Hyperic HQ to monitor a distributed/clustered systems

I've been trying to find a good solution (that can run on Windows) for monitoring/trending/alarming a distributed system comprised of primarly Java technology (Tomcat, ActiveMQ, JBossCache, etc.), but ...
2
votes
2answers
488 views

Block bots by their Java referrer or User-Agent string?

I have been getting a lot of web hits in my logs that crawl most top level pages of my site and show a referrer as a Java version. I see different variants of the Java versions in the referrer, i.e. ...
2
votes
1answer
113 views

Specify a different location to install Java - RHEL6

Is there a way to specify the location where all the installed files would go when installing Java JDK on red hat linux 6? Currently when I follow the steps mentioned in Installation Guide, it ...
2
votes
1answer
77 views

Why would disk reads be heavier than writes with a simple java app that creates many small files?

I've got a very simple java 7 app that reads from a proprietary file format (Hadoop sequencefile) sitting on disk xvdb and creates millions of 2-20kb files on disk xvdf. ByteBuffer byteBuffer = ...
2
votes
1answer
129 views

Time jumps on guest system really shortly

I've got a ESXI-Server and a OpenSuse 10.3 distribution running on it as a guest system. In a java (6_17) application that uses Thread.sleep() to not hog 100% CPU, I noticed that it sometimes never ...
2
votes
2answers
1k views

Scheduled task fails, but runs fine when triggered manually

We have a 2008 R2 server with a scheduled task that runs a .bat file which executes a call to a Java app. The task triggers just fine, but stops executing anything after it creates the log file. ...
2
votes
1answer
3k views

How to install java-1.7.0-openjdk-devel on RHEL Server 6.3?

I have need of installing a Java 7 development environment on a RHEL 6.3 (system details are below). Following the official OpenJDK directions I tried yum install java-1.7.0-openjdk-devel (as root). ...
2
votes
2answers
72 views

Will shared hosting work for my case?

I need to host a JSF application backed by a NoSQL database (Cassandra, which operates on a cluster of nodes). I'm going to purchase a set of VPS to maintain the database server cluster. But to host ...
2
votes
1answer
964 views

Do we need to reboot Ubuntu server after un-installing tomcat6

i am on ubuntu 10.04 server, having tomcat6. because of some reasons i had to un-install it so i used apt-get purge tomcat6 it removed tomcat and config files. now i am trying to install tomcat6 ...
2
votes
2answers
976 views

Setting up APACHE-JAMES Server

I am trying to setup Apache-James Server on Ubuntu, in which I am getting the annoying error: JAVA_HOME not defined correctly We cannot execute I have already referred to the ...
2
votes
3answers
86 views

Resources on Java for Sys Admins? [closed]

I've been fortunate enough to make it four years as an SA without having to administer systems making use of Java. My luck has run up and I am starting a new job and they make extensive use of Java. ...
2
votes
5answers
10k views

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 ...
2
votes
2answers
802 views

Amazon EC2 java installation problem

I'm having a little problem here: I got the amazon free usage tier to test it, launched a ami-465c6932 (Ubuntu 10.10 32bit iirc) on an eu west server. I installed postgresql and made sure it is ...
2
votes
2answers
2k views

Java, Eclipse: How do I pause a running program?

I am running some computation on my Linux box and can't really afford to run it on battery while I drive home. It requires a network connection and currently I am running this stuff on a wireless ...
2
votes
2answers
150 views

Things to know before installing Solaris

I'm about to install a stack on a Solaris box. I have experience installing this same stack on Ubuntu LTS and it has been very simple, but management really wants this to run on a fancy UltraSPARC T1 ...
2
votes
5answers
1k views

Tools and Tips for Sun JVM Troubleshooting

We run a cluster of ColdFusion 8 servers on top of the Sun JVM, version 1.6.0_11. Occasionally a server will simply stop responding to requests. We've determined so far that the JVM is locking up ...
2
votes
1answer
78 views

How can I reduce the number of coldfusion threads running?

I have CF running on a mediatemple DV4.0 & it seems to be running WAY more threads than necessary - enough to continuously trip the "running processes" alert that MT provides [and cannot be ...
2
votes
1answer
307 views

How can I persist certificates in Java's cacerts?

We need to have a certificate in Java's cacerts keystore for one of our servers that is authenticated by LDAP. We are using Ubuntu server. We have successfully done this by updating the cacerts file ...
2
votes
1answer
416 views

Hyper-Threading & htop/system-monitor

I'm running a large set of simulations on a quad-core Xenon E5520 with Hyper-Threading enabled. My software automatically detects 8 (virtual) cores and launches 8 simulations to run in parallel. ...
2
votes
1answer
279 views

Is it possible to set Java to update automatically? Pros/cons?

We have a few hundred users and about 40-50 of them need Java for one reason or another. The problem we run into (as have many others online apparently) is that Java seems to want to update all the ...
2
votes
1answer
2k views

TCP Window Size going to 0 / Wget stops downloading?

I have a somewhat complex setup that doesn't work, and I'm struggeling quite a bit to track down the root cause. First of all the big picture: Node backend is a medium size windows azure worker role ...
2
votes
1answer
1k views

Tomcat 7.0.22 Windows service breaks with JRE update

If JRE update is run without first manually stopping the Tomcat service, Tomcat will no longer start after the next time it is stopped. This most often happens after rebooting per the JRE installer's ...
2
votes
1answer
818 views

Mysql single connection share by multiple java thread?

I have a java application with multiple thread started and they are all sharing a single db connection created in the main function. So far things have been running smoothly. I am worried will there ...
2
votes
1answer
83 views

Using Yum to deploy web application on different machines

I want to deploy application on different machine with Yum. According to my learning I have to create yum repository and package of application. But I cannot find relationship between package and ...
2
votes
1answer
244 views

Possible to block a Java applet from writing log files?

We use a custom build Java applet daily on a host, but each time it writes a debug log file. We don't have the source code for the applet. It is possible to somehow block the applet from writing ...
2
votes
2answers
751 views

Cisco Pix 501 (and probably 506e) PDM web access and Java errors

Are there any nice options for using the PDM on an old Cisco Pix 501 or 506e with modern computers/browsers? I have an old 501 at a remote site and only have https access to it from my location. I can ...
2
votes
1answer
900 views

Websphere 7.0 Work Manager Max Threads Ignored?

I'm trying to chase down a bug in an internal application and as part of this work I noticed an apparent discrepancy between the "Maximum number of threads" setting in WAS (BASE 7.0.0.0 r0835.03) and ...
2
votes
2answers
964 views

Java application crashes on startup in citrix session

We have a java application published through citrix. When application is launched for a new user, it crashes immediately on startup. If we login using RDP, then log out (not starting the app), it ...
2
votes
1answer
919 views

useful JMX metrics for monitoring WebSphere Application Server (and apps inside it)?

When managing custom Java applications hosted inside WebSphere Application Server, what JMX metrics do you find most useful for monitoring performance, monitoring availability, and troubleshooting ...
2
votes
3answers
8k views

Problem with tomcat and getLocalHost exception

I'm running a Linux server named S1 in a "cloud" server, and when tomcat 6.0.24 starts, I get the exception: org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed ...
2
votes
1answer
3k views

Error : Could not find End Of Central Directory

I am trying to deploy a war on weblogic9 using an ant task on a Unix box. I am getting the following error :**[wldeploy] Error opening file [file path] Could not find End Of Central Directory.**The ...
2
votes
6answers
2k views

JMX real-time monitoring application

I'm looking for a (probably) desktop application to monitor applications through JMX in real-time. The application must provide the capability to design a dashboard with charts and gauges with values ...
2
votes
2answers
440 views

How can I safely upgrade java software?

I run a java application that's busy most of the time. When I need to upgrade it, I send it a message to exit cleanly at the next available opportunity, then upgrade the class files, then restart it. ...
2
votes
2answers
635 views

Proper manual deployment of a Java Application Server on Ubuntu Server 8.10 - Linux

I am currently preparing to deploy a JBoss AS into production for the first time. My Linux distribution is Ubuntu Server 8.10 . My original plan was to use aptitude to install JBoss. Currently ...
2
votes
1answer
40 views

Solaris SMF Detect Java PermGen?

Is there a way to detect a Java process is out of memory (e.g. PermGen space) and restart it with an SMF contract?
2
votes
1answer
83 views

%HOSTNAME% value is “unknown” in rsyslog template

The Gist Where does rsyslog get the value of %HOSTNAME% and under what conditions would "unknown" be the expected value? We're using rsyslog on an EC2 instance and we're trying to send our ...
2
votes
1answer
244 views

Disable external Java apps network-wide

According to US CERT TA13-010A, all computer users are advised to disable Java 1.7 in their browser due to arbitrary code execution risks from a zero-day Java vulnerability; however, we rely on ...
2
votes
1answer
1k views

Updating and deleting java (red hat / centos) (closed)

I am a total noob with linux. So please explain clearly if you have a solution for me. I have an VPS and I want to update JAVA. I found a guide on the Java site which says: rpm -e < package_name > ...
2
votes
1answer
2k views

Running 32-bit installer on 64-bit CentOS

I am trying to run the installer for a particular piece of software (I probably shouldn't name the application in case the software vendor gets upset over what I am about to say) on a fresh ...
2
votes
1answer
4k views

Java update/install via group policy

I trying to deploy the latest Java RE version via GP, Java 7 update 9. I want to update computers that are currently running an older version of Java, a mixture of 7.6 and 7.7, some computers are ...
2
votes
1answer
2k views

JBoss 7.1.1 Clustering, JBAS014775:New missing/unsatisfied dependencies

I am following https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto I managed to get 2 servers running. One slave. One master. I managed to get to "Dry Run" I got: [Host Controller] ...