Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

MongoDB as Cache: Some performance tests

As we needed some kind of ID cache for synchronization purposes, which is fast and durable. By having some experience with CouchDB, a NoSQL solution seems to be worth a try. I decided to do some performance tests against the already available and running MongoDB in our server infrastructure.

Formerly we filled a LinkedList (yes, it is a bigger Java project as the "java" tag suggests ;)) by an expensive SQL database at server start (Oracle or SQL Server). Afterwards we had to check, again very expensive, with "contains" if elements are inside. Also the list was limited to a fixed size and contained only the newest IDs.

Cygwin - VisualVM

I tried to use VisualVm for profiling purposes in my current development setup (running Win7 and Cygwin). But the tool did not find my running Java server nor the client, only Eclipse IDE was listed as local application. After some research on the web I figured out that VisualVM searches for the PID file of running java processes in the system's temporary folder. Because of starting the server and client on commandline via Cygwin the PID files were stored in Cygwin's /tmp folder (which is by default not the same than the system' temp).