Latest from the blog

Linux Java Service Wrapper Example

This is a simple wrapper to run a Java program as service. You need to be a root user.... Read More

Java NIO Server Example (Asynchronous Bidirectional)

I needed to create a server for up to 1000 concurrent users. Using a single-threaded-per-socket connection was taking too much CPU and memory. NIO is supposed to increase your latency but it wasn't too much in my case.... Read More

Java Sockets Performance Test Example (Asynchronous Bidirectional)

I was asked to develop a socket service that could send and receive requests asynchronously. The service was meant to cope with up to 300 concurrent users and up to send/receive 50/100 messages per second.... Read More

Check out if Cron Jobs Work in Ubuntu Example

Open a terminal and switch to root user.... Read More

Test Asterisk AMI with Telnet

Tips before the connecting... Read More

How to find out the amount of Threads used by a Process in Linux

List of commands I normally use for this task:... Read More

How to remove the blank line in JSP left by the directive

The blank line after JSP directive issue has been tackled from JSP 2.1 version and above. To sort this thing out just set the property trimDirectiveWhitespaces="true" which is set to false by default.... Read More

How to print all elements in a Map

To get just the key... Read More