Hello. Could someone help a 4 month old Linux newbie on this topic? I saw a previous, 2017 year old, tread, which was more referred to jEdit and etc/hosts, but it didn’t help me.
The situation is as follows - Using Leap 15.1, Intellij and openjdk 11.
Every time I trigger a server related jdk start, I get about 10-15 seconds of empty screen. Turning on ‘-verbose’ has shown me that it gets problematic in the parts, which resembles jvm communication with environment, in particular - network interfaces.
Tried playing with ‘etc/hosts’, but, generally, it’s default and wasn’t edited from start.
One thing to notice though - I’m using OpenConnect VPN with Cisco.
On the question of “why I stated network-manager”. At some point I decided to reboot my pc. After this the jdk start on the same task reduced to 1 second, but after a few VPN toggles, things returned to 10-15 seconds.
It could also be memory related. Fresh after boot would be faster because there is more free memory until it starts being used by other running processes.
You’re going to have to be more descriptive about what you’re doing…
I highly doubt that a jdk would be centrally responsible for any kind of network issues, a jdk is the Java runtime plus some development libraries, nothing more.
The best I can surmise is that you are doing some Java development and for some reason you’re connecting to your company’s LAN.
You’ll need to describe for instance…
Where your codebase is stored, locally or remotely.
Where you may be running your code
Is the application you’re building running only in one place or is it connecting to remote resources (ie distributed application)?
What do you mean by “restarting the jdk?” A jdk is not started, it’s static (unless you’re doing something that’s new to me)
Are you using other library components besides what is in the jdk?
How do you know or think that network resolution is an issue? You may have to describe in some detail what namespaces you’re using and how they are resolved.
Did you set up your own development environment and are you working alone on your project or in a team?
Where your codebase is stored, locally or remotely.
The codebase is local, nothing network related. From Java’s perspective, it’s a regular Spring Boot web application with Netty.
Code is run local, through Intellij.
What do you mean by “restarting the jdk?” A jdk is not started, it’s static (unless you’re doing something that’s new to me)
Don’t recall stating that I restarted JDK. I rebooted OpenSuse, and in a fresh start I got a clean 1 second boot, which extended to 10 seconds after a few VPN on/off toggles.
How do you know or think that network resolution is an issue? You may have to describe in some detail what namespaces you’re using and how they are resolved.
First off, I run jdk with “-verbose” flag, and saw that it had a hard time, depending on execution time, on every spot of NetworkInterfaces.
Secondly, googling “opensuse jdk” does give out a few results, which end up with network related stuff.
OK,
I have a better idea now how your code is deployed and what it’s doing.
The main things I was looking for was whether you were working with a remote codebase that dragged large numbers of files across the network regularly.
There are various ways to optimize your code, recommend doing a search like “spring unit tests”
The first result from that search looks like a really good article that can help optimize your code
I am using /usr/lib64/jvm/jre-13-openjdk/bin/java frequently since 2013 and occasionally Netbeans and never experienced problems as described above. Does this problem occur when you refrain from using OpenConnect VPN with Cisco?