Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Staying Alive with Stash Follow Up

DZone's Guide to

Staying Alive with Stash Follow Up

· Java Zone ·
Free Resource

Verify, standardize, and correct the Big 4 + more– name, email, phone and global addresses – try our Data Quality APIs now at Melissa Developer Portal!

In my last blog, I had some issues with Atlassian Stash. In the last week and half, I would like amend my attitude to the product. In fact, I thank Atlassian Support for their really good responses and quick turn around to my questions. The biggest problem, which I think that even engineer like me, experienced failed to realise, that was code always changes and all resources are finite.

First, I upgraded my Atlassian Stash product from 2.10.1 to 2.12.3. Therefore, I obtain the latest improvements in the product in terms of performance and bug fixes.

Second, I was running the Tomcat 7 server on a Virtual Private Server (VPS) with only 1GB of RAM. This would have been plenty of memory if Tomcat was the only service running on the Linux system, but when you start add other services like Apache HTTPD, Play Framework with Codehale’s Dropwizard and other test services. Stash itself requires a Java VM with 768MB of RAM. I upgraded my VPS to at least 1.5GB RAM and the performance of Stash is now much better. I also limited the memory consumption of Apache server and other restricted the other ad-hoc services.

The moral of the story is this. Until there is a JVM that allows shared classes and resources, then you will have to careful tune the resources running multiple JVM instances in a virtualised environment. If your demands require more memory then you have to buy and scale out horizontally. As Kirk Pepperdine said, “You can’t ever hope to virtualise performance increases with JVMs running inside a virtual environment”. Atlassian Stash is like another service, requires it own JVM (or Tomcat server) to run with physical memory demands. Netty and Play Framework services are other examples of other JVM instances. So Reactive Mongo people could also take note of this advice when running Scala web applications.

I recommend Stash to your services and clients if you want to get a private Git Repository reliably on a server for your office team. The user interface is also very good.

By the way, Atlassian also say that Stash does not rely on the Apache Native Library for performance.

Developers! Quickly and easily gain access to the tools and information you need! Explore, test and combine our data quality APIs at Melissa Developer Portal – home to tools that save time and boost revenue. Our APIs verify, standardize, and correct the Big 4 + more – name, email, phone and global addresses – to ensure accurate delivery, prevent blacklisting and identify risks in real-time.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}