Intellij starting gradle multiple times and eventually fails - windows

I am using Intellij on Windows to build a Ktor app, this problem is not specific to Ktor but any project, after about 30 mins or so of using the program and when I try to run the Application I am building, the log shows
Starting Gradle Darmon
Grade Daemon started in [x] seconds
Starting Gradle Darmon
Grade Daemon started in [x] seconds
and so on...
Is there a way to resolve this, as of now the temporary solution is to restart my PC

The issue seemed to be due to a WiFi hotspot turned on in my laptop, this seems to be a Gradle bug which will hopefully be fixed soon... I turned off the Hotspot and works fine....

Related

Slow Eclipse Spring STS plugin

Am new to Spring and installed Eclipse STS plugin and working with services seem to be dead slow with CPU spiking in usage. The laptop just heats up and literally the fan runs like a Jet engine responding directly to the start/ stop of the services.
Although following have really ironed out all of the Eclipse performance issues with Spring STS for me, the actual daily development is just so slow where the services literally take minutes to start and Eclipse keeps freezing while debugging the code and normal code navigation also would freeze Eclipse while the services are UP.
java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.io.IOException: The pipe is being closed
How to disable Eclipse IDE Language Server
The machine has 32 GB RAM, and Eclipse goes to anywhere between 2 GB to 8 GB of memory usage. Just do not know what is wrong here. Anyone faced this issue?
I found the issue here and the fix, and wanted to post it for anyone else who might be facing the same. The problem was with Eclipse 'Launch Group'.
Short answer - Dont use launch groups to start STS 'run configurations', just individually launch the services.
Long answer - Read on below ⤵
In my case I have multiple Spring services that need to start in a particular order, and so I used Eclipse 'Launch Group' to automate 'Run Configurations'.
I believe the problem really being with 'Launch Configurations', where it introduces 'build and refresh' of the 'Run Configurations' that have been put into launch groups. I'm sure there would be some good reason for Eclipse to have done this, but that really did not work for me in this case. Each time I start/ restart services using launch configurations, the 'Launch Configuration' is just triggering 'build' for all 9 Spring projects, and this adds up to Eclipse workload freezing it for good 6-10 minutes (as that is the project build time) before handing over control to STS plugin, which further takes few minutes to start all the services.
Once I stopped using 'Launch Configurations', 'start/ restart' of each service via the STS plugin is just seconds, not even minutes.
What a ride it had been! Hope this helps someone!!

Divio Windows App hangs at Preparing Logs

I have installed the WIndows 10 Divio App as per the Divio Tutorial but when I select setup a project it hangs at Preparing logs... in the shell on the desktop and cannot see logs are anyway to investigate this. I have tried the solution in this question here How to debug problems with the Divio app?
However, this does not work, any help would be appreicated.
Managed to fix this, I did it by following the guide here:
https://divio-cloud-developer-handbook.readthedocs.io/en/latest/introduction/01-installation.html
Essentially installed everything via the command line and then once that was running I could then sync the Divio app to the project folder which in turn allowed me to use the Divio app. Total PITA but it worked :)

App running in Intellij-IDEA is extremely slow

I have an app which I want to run in intellij-idea using run button. The task which everyone of us do almost every day. Yesterday everything was working fine but today it is somehow extremely slow. It will get built fast but when it is being run it is extremely slow.
I have no other big processes running, it is just intellij-idea.
My app is gradle project. When I build it and start it using gradlew everything is smooth as it was yesterday. I have the latest version of intellij-idea ultimate. Also I have tried reinstalling it but the problem remains the same.
Can someone help me with what might cause this problem ?
I was searching all day for the answer but I am not able to find any. It is frustrating.
Thank you for any help.

TeamCity build agent connected and disconnected at the same time

guys.
I'm having some trouble with TeamCity build agents.
I have an agent i'm using for calabash automation. When i'm running the build i'm getting :
Agent didn't come for the command in a 30 seconds.
I can see my agent in "Connected agents" tab, and "Disconnected" tab, and builds are not running. I tried to reboot the machine several times, and restarting the agent daemon on that machine, nothing happens, even when I shut down the machine it's still in "connected" and "disconnected" tabs.
There was a bug in TeamCity 9.1.x which is fixed in 9.1.4 which may cause such problem. You could use workaround from issue comments.

IDEA 14.x Mac OSX. JBoss AS 7 "Server is not connected. Deploy is not available"

I have looked at all the other answers posted. Have spent several fruitless hours trying to determine why my JBoss AS 7 deploy from IDEA 14.x has stopped working. It has been working fine for the last 9 months, and now fails.
On executing the deploy Jboss Run Configuration, the ear file I'm using fails to deploy. The Jboss instance (standalone) is started successfully, if I click the artefact & click deploy - it displays
"Server is not connected. Deploy is not available"
I checked all the usual possibilities.
I made sure JDK/Java versions tally between IDE & JBoss runtime.
I can deploy the same artefact to Glassfish in the IDE.
I can deploy the same artefact to JBoss from the admin console.
I checked the JBoss ports 8080, 9990 etc. - they're all fine.
I checked that any recent Mac OS security updates mentioned Java - no nothing.
Still stumped...
The resolution was:
Mac OSX 'System Preferences' -> Sharing -> Computer Name
This was blank. Re-adding the 'Computer Name' fixed this.
Effectively my laptop had no hostname, defaulted to 'localhost', and this was tripping up the connection from IDEA to JBoss.
Just posting this in case it can save others from wasting their time.

Resources