Category "jvm"

getting this error: java.net.BindException: Address already in use: Cannot bind

Hello am building a flutter apk using vscode but I get the error below, any help on how to go about it. Did a research but am getting no solution. I have config

High CPU usage when shifting from Java 8 to Java 11 with G1GC

We are having following VM settings for our server. This configuration works perfectly when running Java 8. But when we switch JVM to Java 11 OpenJDK, the serve

JUnit tests fails on GitHub Actions but not locally

I am trying to run JUnit tests on GitHub Actions but some of it fails. Locally all tests passed. On my PC I am using Ubuntu 20.04 with OpenJDK 1.8 (275), on CI

Mocking internal function call in Kotlin

I am a complete beginner in terms of Kotlin and I am finding some issues while trying to test out a Ktor based application. I have a file in my endpoints packag

Jenkins cannot deploy to nexus

when deploy from jenkins to nexus with the Nexus Artifact Uploader plugin i get the following error: java.lang.NullPointerException at sp.sd.nexusartifactup

Is the compile time affect the app when deploying it?

I'm curious to understand a phrase such as "At compile time however, x language is measurably slower than y language*". Does this mean compile time difference w

Can't get a Java heapdump from a docker container

My Java process is stuck and hogging a lot of CPU on the VM. I am trying to get to the root of the issue by getting a heapdump. This process is running in a doc

Java using much more memory than heap size (or size correctly Docker memory limit)

For my application, the memory used by the Java process is much more than the heap size. The system where the containers are running starts to have memory prob

Are abstract classes faster than Interfaces in Java?

According to this article here, on abstract class vs interface, abstract classes a SLIGHTLY faster than interfaces, why is that and can you explain the mechanic

docker stats shows zero memory usage even for running containers

I have two containers ran by Docker Swarm: # docker ps CONTAINER ID IMAGE COMMAND CREATED STA

"No main manifest attribute" when creating Kotlin jar using IntelliJ IDEA

When creating a jar from my Kotlin code and running it, it says "No main manifest attribute". When looking at the manifest.mf, it has this content: Manifest-Ve

Why is SerialGC chosen over G1GC?

I am running Java on very similar VMs and I can't find the explanation why the SerialGC is chosen over G1GC in one case. It's the same Java version, same OS, sa

Android Studio Build gradle OutOfMemoryError

I'm new in Android. I import Github project in Android studio, but i see this problem `Error:java.lang.OutOfMemoryError: Java heap space Error:java.lang.Out

Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

When trying to run the Example CorDapp (GitHub CorDapp) via IntelliJ, I receive the following error: Cannot inline bytecode built with JVM target 1.8 into byte

JVM MaxHeapSize := 0 - what does this mean?

I have seen other questions on here like: How is the default max Java heap size determined? and Understanding java heap I run the command to see my heap size ja

JVM Stack Variables

I understand JVM creates a Stack for each thread and that Stack contains calls to other methods as thread invokes them. I don't understand when it says Stack wi