Performance Zone is brought to you in partnership with:
  • submit to reddit
Roman Leventov07/22/14
0 replies

Time - memory tradeoff with the example of Java Maps

This article illustrates the general time - memory tradeoff with the example of different hash table implementations in Java. The more memory a hash table takes, the faster each operation (e. g. getting a value by key or putting an entry) is performed.

Alec Noller07/21/14
0 replies

DZone's 200th Refcard Released: Java Performance Optimization

Today, DZone released Refcard #200: Java Performance Optimization. To mark the significance of this milestone, this Refcard boasts a complete redesign - all the information you expect from a Refcard in a shiny new package!

Ayende Rahien07/21/14
0 replies

Introducing inefficiencies into RavenDB, on purpose

The administrators on the server noted the high I/O and that a single thread was constantly busy and decided that this is likely a hung thread. The long term fix was to actually make sure that we abort the operation after a while, report to the remote server that we scanned up to a point, and had nothing to show for it, and go back to the replication loop.

Whitney Baker07/19/14
0 replies

Benchmarking PHPNG in Alpha

PHPNG is only in alpha development, but several benchmarking tests already put it streets ahead of PHP 5.6 – in some cases, it easily performs twice as quickly.

David Flynn07/18/14
0 replies

Finite Sequence Generators in Java 8 – Part 2

In the finite sequence article, we saw that unless we wanted to limit ourselves to a certain number of values we couldn't use generate and iterate in a simple manner.

Asela Pathberiya07/18/14
0 replies

XACML PDP Performance Testing with Thrift

With Identity Server, we can also use Thrift protocal to communicate with PDP. It is said that thrift is more faster than the HTTP. Therefore we hope that we can get more performance and less response time by using thrift protocol with Identity Server.

Jay Fields07/17/14
0 replies

Solitary Unit Test

In Java it’s common to unit test at the class level. The Foo class will have an associated FooTestsclass. Solitary Unit Tests follow two additional constraints: Never cross boundaries and the Class Under Test should be the only concrete class found in a test.

Bruno Terkaly07/17/14
0 replies

Get With the Times - Get Rid Of the Bloated XML Data Format And Switch To JSON

One of my blog readers told me it was 2014. He laughed at the fact that I was still using XML, so within 30 minutes I was writing JSON to disk, instead of XML. It was incredibly easy to do.

Gabriel Dimech07/16/14
0 replies

Retrieving JMX information programmatically

In order to retrieve JMX information from a Java application, the target application must be configured to expose JMX information. The following Java code allows for polling the JMX agent and retrieving memory, CPU usage and also shows how to remotely invoke the garbage collector:

Ayende Rahien07/16/14
0 replies

Message Passing, Performance - Take 2

In my previous post, I did some rough “benchmarks” to see how message passing options behave. I got some great comments, and I thought I’ll expand on that.

Trevor Parsons07/16/14
0 replies

TCP or UDP for Logging – Which One to Use?

When sending data over the Internet, we want to be sure that data has arrived safely and is delivered in a reliable manner. Assuming that our hardware and operating systems do the job well, we can use transport protocol on the application level to achieve that goal.

Mehdi Daoudi07/16/14
0 replies

In the World of DNS, Cache is King

The first time I learned how DNS gets resolved, I was quite surprised by how long and complicated the process was. Think about how many websites you visit in a given day, then consider how many of those you go to multiple times.

Alec Noller07/15/14
0 replies

Refcard Expansion Pack: Node.js

This week, DZone released its latest Refcard: Node.js. For those of you interested in sharpening your Node.js skills - or, maybe, debating a potentially unpopular opinion - we decided to dig into the DZone archives and find some of the most popular posts we've had on the topic.

Ayende Rahien07/15/14
0 replies

Message passing, performance

What I need this for is for network protocol handling. As such, even assuming that every single byte is a message, we would have to go far beyond what any reasonable pipe can be expected to be handle.

Peter Zaitsev07/15/14
0 replies

Simple MySQL Master HA with mysqlnd_ms

I had the pleasure of presenting to the PHP Users Group Philippines a few days ago about mysqlnd_ms. The mysqlnd plugin, MySQL Master Slave, is a transparent layer on top of mysqlnd extension.

A. Jesse Jiryu Davis07/15/14
0 replies

Let Us Now Praise ResourceWarnings

A couple years ago when I began using Python 3, its new ResourceWarnings infuriated me and I ranted against them. And now, a ResourceWarning has saved my tuchus.

Ayende Rahien07/14/14
0 replies

Async event loops in C#

I’m designing a new component, and I want to reduce the amount of complexity involved in dealing with it. This is a networked component, and after designing several such, I wanted to remove one area of complexity, which is the use of explicitly concurrent code.

Whitney Baker07/13/14
0 replies

The Best of the Week (July 4): Performance Zone

Make sure you didn't miss anything with this list of the Best of the Week in the Performance Zone (July 4 to July 11). This week's topics include slow unit tests, busy thread count alerts, detecting deadlocks, cost accounting for SSDs and Java EE.

Mehdi Daoudi07/12/14
0 replies

Performance On and Off the Track at the Formula 1 Grand Prix

In the world of Formula 1, milliseconds are the difference between Pole Position and second on the grid. Millions of dollars are spent on getting the maximum performance out of both the car and the driver.

John Piekos07/11/14
0 replies

Cost accounting for SSDs – it’s RAM, not disk

Most discussions I have seen about choosing SSDs vs. spinning disk arrays for databases tend to focus on SSDs as a replacement for disk. SSDs don’t replace disk; they replace the RAM you would be using to cache enough disk pages to make up for the terrible random IO performance of spinning disk arrays.

Theodore Ravind...07/11/14
0 replies

5 Quick Points about Threads for Java EE

Here are five quick points that developers should be conscious of when their code is running in a multi-threaded (usually Java EE) environment. We all write code where we don't create threads ourselves but our code is still being executed in multi-threaded environment. Here are some tips focused on helping you write code that is thread-ready and thread-safe.

Mike Bushong07/11/14
0 replies

Scripting is Automation, but Automation is not Scripting

We have been scripting our networks against CLIs forever and I will bet you most folks will consider it successful, even though it may be a pain. [Greg Ferro's Article] lists the pains, but not the reasons why.

Mehdi Daoudi07/10/14
0 replies

Dissecting DNS Communications

In our previous articles on DNS we gave an overview of the recursion process, but before we can go further on how DNS impacts performance, we need to understand how it the DNS protocol works.

Peter Zaitsev07/09/14
0 replies

TIMESTAMP Columns, Amazon RDS 5.6, and You

This comes from an issue that I worked on recently, wherein a customer reported that their application was working fine under stock MySQL 5.6 but producing erroneous results when they tried running it on Amazon RDS 5.6.

Doug Winfield07/09/14
0 replies

Single Point Testing Using Fiddler AutoResponder

Fiddler’s AutoResponder makes it easy to test how your site behaves when any of its constituent resources is slow or unavailable. With the AutoResponder, you can selectively choose resources to delay or fail, and ensure that your client-side experience recovers as best it can.