apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.64k stars 844 forks source link

Unnecessary redeploys by "deploy on save" #7802

Open banifou opened 2 days ago

banifou commented 2 days ago

Apache NetBeans version

Apache NetBeans 23

What happened

Working and making changes on different files and jumping from one file to another one sometimes triggers a webapp redeploy even though when no file has been saved at all. This is a problem because Wildfly, Tomcat and Glassfish run out of PermGen after 10 or so redeploys. The webapp should only redeploy when changes has been saved. Or am I misunderstanding this feature?

Language / Project Type / NetBeans Component

Java maven project

How to reproduce

Reproduceable with any maven webapp.

Did this work correctly in an earlier version?

No / Don't know

Operating System

ubuntu 24.04

JDK

openjdk 17

Apache NetBeans packaging

Apache NetBeans Snap Package

Anything else

No response

Are you willing to submit a pull request?

No

JoachimRohde commented 1 day ago

I cannot say anything regarding your actual problem, but are your servers really running with Java <= 7? Because PermGen has been removed in JDK 8.

banifou commented 1 day ago

That's right, I meant "out of memory". "deploy on save" shouldn't redeploy until any changes has been saved. But not before.