Latest from the blog

Java Eclipse Insert and Read Utf-8 in Mysql Example

In most cases trouble happens because not everything is coded with UTF-8 or we are not doing the transcoding properly. We must tell MySQL how to store, send or receive the Unicode Transformation Format - 8 bit (UTF-8).  The easiest way to avoid any trouble is by setting everything to UTF-8.... Read More

Simple Linux Service Wrapper to Run Tomcat on startup

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

Java JSP Examples to Display Thread Status.

Sometimes it's useful to know that is some threads status. I normally use JConsole to monitor but if you can't use this technology and you need to know what is going on with the threads an easy trick is to upload a JSP to the server. Here are some good examples for that.... 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

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

Test Asterisk AMI with Telnet

Tips before the connecting... Read More