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

Should server applications limit themselves to 4 GB?

DZone's Guide to

Should server applications limit themselves to 4 GB?

· Java Zone
Free Resource

What every Java engineer should know about microservices: Reactive Microservices Architecture.  Brought to you in partnership with Lightbend.

A very interesting talk by CTO of Azul, Gil Tene raises many timely issues about GC performance and server memory sizes.

A typical new server should be 100 GB

One point he brings up is; with memory so cheap a typical server should be around 100 GB (at around $7K) Installing less memory is wasting data centre space. A typical JVM only uses 2-4 GB as the GC pause hurts responsiveness at this point. However, if you are developing an application which only uses 2-4 GB you are writing an application which will soon fit on a mobile phone. So how can we write server applications which can use the whole server in Java?

Java without the GC Pauses: Keeping Up with Moore’s Law and Living in a Virtualized World

He raises questions about how best to use that memory and not surprisingly Azul have a product which will scales to that much memory efficiently.

For those who are not planing to buy such a system, you could be thinking about how you can use more memory efficiently.

My view

When you increase the Eden size of an application but just create temporary garbage, the pause times don't increase. Its the retained objects which increase the pause time.

The simplest thing to try is having a very large Eden size and see if the pause times increase or perhaps decrease. It can decrease as you give more time for medium lived objects to die and less objects leave the Eden/Survivor spaces to make it into the tenured space which require long pauses to clean up.

What can you buy today

The prices Gil quotes are actually 6 months old now.

I only quote Dell here because I find their web site easy to get a quote from.

I found a Dell T610 with 96GB cost $5.8K and T710 with 192 GB costs $12.2K on their web site.

I recently bought a PC with 24 GB for £1K. ;)

From http://vanillajava.blogspot.com/2011/08/should-server-applications-limit.html

Microservices for Java, explained. Revitalize your legacy systems (and your career) with Reactive Microservices Architecture, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}