What does “Other” mean in Java GC log?

I have such setup Java 11 Corretto inside Docker running on EC2 Java options: -Xms1200m -Xmx1200m -XX:+UseG1GC -Xlog:gc* In log I see that usually GC takes ~100-200ms, but for some timeslots, I see …

In Java, how to copy data from String to char[]/byte[] efficiently?

I need to copy many big and different String strs’ content to a static char array and use the array frequently in a efficiency-demanding job, thus it’s important to avoid allocating too much new space….

Profiling Java code changes execution times

I’m trying to optimize my code, but it’s giving me problems. I’ve got this list of objects: List descriptors; public class DataDescriptor { public int id; public String …

Garbage Collector not freeing “trash memory” as it should in an Android application

Hello! I’m a beginner Java and Android developer and I’ve been having trouble lately dealing with my app’s memory management. I will break this text into sections, in order to make it clearer and …

Android – Prevent white screen at startup

As we all know, many Android apps display a white screen very briefly before their first Activity comes into focus. This problem is observed in the following cases: Android apps that extend the …

Fast and asynchronous way of making multiple http requests in JAVA

I have a program that should make really fast http requests. Requests should be made asynchronously so that it won’t block the main thread. So I have created a queue which is observed by 10 separate …

What JVM optimization is causing these performance results? [closed]

In a Java REST service performance test, I got an unexpected pattern: a method that creates and returns always the same value object in each invocation runs faster than another version that just …

Java 8’s streams: why parallel stream is slower?

I am playing with Java 8’s streams and cannot understand the performance results I am getting. I have 2 core CPU (Intel i73520M), Windows 8 x64, and 64-bit Java 8 update 5. I am doing simple map over …

Java GC overhead limit exceeded – Custom solution needed

I am evaluating different data from a textfile in a rather large algorithm. If the text file contains more than datapoints (the minimum I need is sth. like 1.3 million datapoints) it gives the …

Python very slow as compared to Java for this algorithm

I’m studying algorithms and decided to port the Java Programs from the textbook to Python, since I dislike the Java overhead, especially for small programs, and as an exercise. The algorithm itself …