Tag Archives: server

“Cannot fork”

From time to time, the virtual server I rented acted up. When logging into the system, I would get error messages indicating the server wasn’t able to create any more processes: “cannot fork”. This was weird because ps(1) showed only … Continue reading

Posted in linux | Tagged , , | Leave a comment

JBoss: Running Multiple Instances on One Host

Occasionally, it’s useful to run multiple JBoss instances on one machine. Like with any network server, this is difficult because only one application can bind to a port at any given time. You have to assign different sets of ports … Continue reading

Posted in java | Tagged , , | 2 Comments

Excluding Pages From Authentication

Java’s Servlet spec allows web applications to delegate authentication and authorization to the servlet container, a mechanism known as container-based security. A lot of people use it for in-house applications or web services because it’s simple and containers like Tomcat … Continue reading

Posted in java | Tagged , , , | 16 Comments

Enabling JMX Access on Tomcat

I think every Java application in production should enable JMX access. Without JMX, there’s little chance to debug JVM-level problems, especially those related to out of memory errors. Even if your application doesn’t export its own MBeans for monitoring, you … Continue reading

Posted in java | Tagged , | 8 Comments

Deploying to Tomcat From Maven Builds

It’s quite common to deploy web applications from a nightly continuous integration job to a testing server. In my case, I want to deploy a Java web application to a remote Tomcat server from a Maven build. Enter Cargo, a … Continue reading

Posted in java | Tagged , , , ,

Berlin Buzzwords Conference 2010

This week I attended Berlin Buzzwords Conference 2010, a two-day event aimed at software developers. The conference offered two tracks, one on search and the other one on NoSQL systems. Typical attendees seemed to be MacBook-wielding, twittering lifestyle geeks, often … Continue reading

Posted in misc | Tagged , , , | 4 Comments

Using TCP for Low-Latency Applications

Last week I ran into a nasty little problem while implementing an application with soft real-time requirements. I was aiming at 1 ms or less for a TCP-based request-response roundtrip on a local network. Should be trivial, but why did … Continue reading

Posted in misc | Tagged , , , | 13 Comments