Java Performance: For-Looping vs. Streaming

DZone

How well does your Java perform? performance jvm streaming java performance iteration data stream for loop graal vm cleverIteration Performance. There are many views on how to iterate with high performance.

Java 141

How to Tune Garbage Collection in Java

DZone

These pauses are sometimes called Stop-The-World pauses, and the minimization of them is the primary concern of GC tuning, as they can have a huge impact on the performance of a Java application. java tutorial performance garbage collection java performance tuning gc garbage collector heapGarbage collection is the mechanism by which the JVM reclaims memory on behalf of the application when it's no longer needed.

Tuning 218

How Java Profilers Work

DZone

One of the best tools we have today for understanding application behavior and troubleshooting performance issues are Java profilers. Java profilers monitor JVM execution at the bytecode level and can provide information on thread execution and locks, heap memory usage, garbage collection, hot methods, exceptions, class loading, and more. How Java Profilers Work. java performance java performance app performance profilers java profilers

Java 100

Rocket Performance on Your Java Application with Memcached

DZone

To install RavenDB using Docker follows the step below: java nosql performance memcached jakarta ee jakarta jnosqlMemcached is an easy-to-use, high-performance, in-memory data store.

Java 219

Java 9 Performance Improvements — Getting Started With Java Spring

DZone

In my previous article, I wrote about the Modularity System , which was introduced in Java 9. With this writing, I would like to continue the Java evolution line by taking a glance about the main Java 9 features according to the performance improvements. Java 9 Feature: Performance Improvements. In Java 9, the most significant performance upgrade was concerned with the Garbage Collection. java performance java 9 garbage collector new features

Java 100

Multi-Threaded Geo Web Crawler In Java

DZone

The implementation is in core Java. Mowglee is a multi-threaded geo web crawler in Java. This article provides the implementation of a web crawling system called Mowglee that uses geography as the main classifying criteria for crawling.

Java 205

Remote Debugging Java Applications With JDWP

DZone

Most Java developers have had to debug their applications, usually to find and fix an issue there. This is where JDWP (Java Debug Wire Protocol) comes into play. java performance jvm debugging remote debugging jdwp

Java 130

Java Unit Testing Best Practices: How to Get the Most Out of Your Test Automation

DZone

Generally, a unit should be a small part of the application — in Java, it is often a single class. java performance testing unit testing best practices testing pyramid testing best practicesUnit testing is a well-known practice, but there's lots of room for improvement!

Performance Analysis of ArrayList and LinkedList in Java

DZone

ArrayList and LinkedList are frequently used classes in the Java collection framework. java performance array linkedlist arraylist interview answers performance analysisIf you know only understand basic performance comparisons of ArrayList and LinkedList , but not the minor details of these two classes, then this article is for you. " ArrayList should be used where more search operations are required, and.

Java 109

Addressing Application Performances in Java Applications

DZone

java tips and tricks performance best practicesWhile solving issues related to NFRs (especially application performance), I always think about why we as developers give less importance (honorable exceptions are always there) to performance. Is this due to a lack of awareness? Many times, we start thinking of performance only at the time of a performance test or after deployment.

Java 100

Increase Throughput by Eliminating Blocking Code in Your Java REST App

DZone

java performance jvm blocking profiler tool blocking codeBlocking code is code which blocks executing threads until their operations finish.

Code 164

Java Or Scala Performance – Which One Is Better?

Alex Podelko

For years, the debate has raged on regarding which programming language is better, Java or Scala. While some argue that just because Java is older it is better, others believe Scala is better for a variety of reasons. The Java program language was first introduced in 1995.

Java 130

Top 9 Free Java Process Monitoring Tools and How to Choose One

DZone

What Are Java Profilers? A Java Profiler is a tool that monitors Java bytecode constructs and operations at the JVM level. java open source performance monitoring jvm process java performance process monitoringTo help equip you for the ongoing process of optimization and the life of debugging ahead of you, we’ve gathered a list of the best tools to monitor the JVM in both development and production environments. And the best part?

'High-Performance Java Persistence' Chapter 8: Why JPA and Hibernate Matter

DZone

This chapter aims to remind the reader why Hibernate has its place in high-performance data access, and the table of content looks like this: java performance hibernate jpa java persistenceSecond Part, Chapter 8. Now that the first part of my book is published, it’s time to focus on the second part, which covers both JPA and Hibernate.

Java 100

Java vulnerabilities

Sutter's Mill

From the post: Are the Java vulnerabilities actually C and C++ vulnerabilities? You’ve probably seen the headlines: [US-CERT] Java in Web Browser: Disable Now! We’ve been telling people to disable Java for years. … This should be enough motivation for you to turn Java off.

Java 52

Tricks with Direct Memory Access in Java

Highly Scalable

Java was initially designed as a safe, managed environment. Nevertheless, Java HotSpot VM contains a “backdoor” that provides a number of low-level operations to manipulate memory and threads directly. HotSpot JVM direct memory management heap hot spot hotspot java jdk7 jv

Java 131

Java Package Flame Graph

Brendan Gregg

But with Java, there's another way to visualize the same CPU workload which provides some additional insight: **a Java package flame graph**. Instead of visualizing the stack trace hierarchy, this visualizes the Java package name hierarchy. Here is a normal stack trace-based [CPU flame graph] for Java, running a microbenchmark ( SVG ): The y-axis is stack depth. How much CPU time was in java/util methods directly, excluding child functions calls?

Java 40

2019 Top Slack Channels for Software Testers

DZone

java performance software testing selenium slack appium java script robot framework collabaoration

RSocket vs. gRPC Benchmark

DZone

java performance scalability latency cpu grpc rpc qpsAlmost every time I present RSocket to an audience, there will be someone asking the question: "How does RSocket compare to gRPC?" " Today we are going to find out.

20 Highly Qualified Test Automation Superstars

DZone

Our world-class expert instructors provide free test automation training in multiple programming languages such as Java, JavaScript, C#, Python, Ruby, and Swift. java javascript python performance c# test automation developers automated testing qa

Testing Code With REST Calls Made Easy

DZone

java server performance spring rest http junit mocking frameworksIntroduction. These days, our code frequently has to reach out to a remote server as part of its job, usually consuming an API or some other service. Frequently, our code communicates with these remote services in a RESTful manner.

Code 182

Extending Dynatrace

Dynatrace

The Dynatrace OneAgent will automatically instrument most frameworks in Java,NET, Node.js, PHP, and Golang. Any programming language able to make HTTP requests – such as Python, Java or bash – would be good for this purpose. Dynatrace news.

Better Logging With TinyLog 2

DZone

Most, if not all, Java and Android developers have come across logging requirements in their application. java performance kotlin logging logging frameworks tinylog

Why Do We Need the Volatile Keyword?

DZone

java performance java concurrency happens before jcstress volatile fieldWhat fascinates me most about the volatile keyword is that it is still necessary, for me, because my software still runs on a silicon chip. Even if my application runs in the cloud on the JVM, despite all of those software layers abstracting away the underlying hardware, the volatile keyword is still needed due to the cache of the processor that my software runs on.

Cache 130

Custom Framework Listeners

DZone

java performance maven logging gradle java performance cucumber testng custom framework listenersIn my past articles, I’ve written about using custom listeners as part of getting the desired reporting or making your tests do what you want.

Write Maintainable Integration Tests with Docker

DZone

tutorial performance integration docker java (programming lang The popularity of microservices and the use of third-party services for non-business critical features have drastically increased the number of integrations that make up the modern application.

How to Make Simple End-To-End Tests With JavaTea

DZone

The following three topics are focused in this article: java performance junit testng selenium automation testing test automation framework parallel execution pairwise error

Boosting Spring Data Performance With Couchbase

DZone

It became very popular among Java/JVM developers because of the small learning curve and low codebase. java database tutorial nosql performance spring couchbase spring data indexes

Don’t read your data from a straw

Daniel Lemire

Or you can just cheat and do a “cast” What do you do in Java? However, Java offers a performance-oriented concept called a ByteBuffer to represent and array of bytes. Speaking for myself, I was going under the impression that Java would do a fine job reading from a byte array using an input stream. java performanceIt is common for binary data to be serialized to bytes.

C++ 116

Does the 32-Bit JVM or 64-Bit JVM Decision Matter Anymore?

DZone

java jvm jvm performance tuning q&a 32 bit 64 bitThere are a few distinct differences and subtle nuances between 32-bit JVM and 64-bit JVM. We thought we will try to clarify them through this question-and-answer article.

Tuning 141

Scaling Benchmarks With More Robust UseNUMA Flag in OpenJDK

DZone

What happens when you run a Java application without checking your hardware configuration? java jdk openjdk benchmark nodes performanace jdk11 flag numa lagObviously, your application lags in terms of performance.

How to Make A Simple End-To-End Testing Framework With JavaTea

DZone

The following three topics are focused in this article: java performance junit testng selenium automation testing test automation framework parallel execution pairwise error

Data Boundaries Are the Root Cause of Maintenance Problems

DZone

java performance clean architecture hexagonal architecture object orientation layered architecture dci architecture

Design 130

Troubleshooting the Performance of Vert.x Applications, Part I - The Event Loop Model

DZone

performance java programming vert.x This article is the first in a series of three articles which share my experience with troubleshooting the performance of Vert.x applications. The first article provides an overview of the Vert.x

Troubleshooting the Performance of Vert.x Applications, Part III — Troubleshooting Event Loop Delays

DZone

performance java development vert.x In the previous entry to this series, we reviewed several techniques that help you to prevent event loop delays; however, even the best programmer makes mistakes. What should you do when your Vert.x application doesn't perform as expected?

Code 130

Intro to Redis Cluster Sharding – Advantages, Limitations, Deploying & Client Connections

High Scalability

Redis Cluster is the native sharding implementation available within Redis that allows you to automatically distribute your data across multiple nodes without having to rely on external tools and utilities. At ScaleGrid, we recently added support for Redis Clusters on our platform through our fully managed Redis hosting plans.

Boost of Parallelism Using Producer/Consumer Pattern

DZone

java performance jvm faq parallelism consumer producer patternIn general, there are two ways to achieve parallelism in your application. As always, both solutions have pros and cons and their core use cases are absolutely different.

Java 130

Intro to Redis Cluster Sharding – Advantages, Limitations, Deploying & Client Connections

Scalegrid

Connecting With Java. Among the popular Redis Java clients , Jedis and Lettuce support Redis Clusters. Here’s the same program as the Java example above in Ruby: require 'redis' require 'pp' NODES = ["redis://SG-example-1.servers.scalegrid.io:6379",

OutOfMemoryError-Related JVM Arguments

DZone

java performance jvm memory error heap dump arguments outofmemoryerrorThe JVM has provided helpful arguments to deal with OutOfMemoryError. In this article, we would like to highlight those JVM arguments. It might come handy for you when you are troubleshooting OutOfMemoryError. Those JVM arguments are: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath. -XX:OnOutOfMemoryError. XX:OnOutOfMemoryError. -XX:+ExitOnOutOfMemoryError. XX:+ExitOnOutOfMemoryError. -XX:+CrashOnOutOfMemoryError.

Java 100

Micrometrics to Forecast Application Performance

DZone

java performance jvm forecasting outofmemoryerror heap dump analysisEven unpredictable weather is forecasted. But after all these technological advancements, are we able to forecast our application performance and availability? Are we able to forecast even for the next 20 minutes?

Troubleshooting the Performance of Vert.x Applications, Part II - Preventing Event Loop Delays

DZone

performance api java development vert.xIn the previous part of the series, we took a closer look at the event loop model. In this article, we are going to discuss several techniques that help you to prevent event loop delays. The causes of event loop delays can be divided into two categories. The first category contains event loop delays caused by a handler calling a blocking API. The second category covers delays caused by a handler code taking a great amount of CPU time to complete.

Code 100

TDD: Where Did I Get It Wrong?

DZone

" java tdd unit testing junit bdd test driven developementIf you are developing using Test-Driven Development (TDD), there is a chance that you are doing it the wrong way. The symptoms of this are very clear.

Code 141

Large or Small Memory Size for My App?

DZone

java performance mobile applicationShould I be running my application with few instances (i.e. machines) with large memory size or a lot of instances with small memory size? Which strategy is optimal? This question might be confronted often. After building applications for 2 decades, after building JVM performance engineering/troubleshooting tools ( GCeasy , FastThread , HeapHero ), I still don’t know the right answer to this question.