This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Unable to start more than 3-4 projects at the same time | ||
---|---|---|---|
Product: | projects | Reporter: | karamba84 |
Component: | Maven | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | messages.log |
Description
karamba84
2013-05-17 07:55:02 UTC
could you please attach messages.log file and reopen ? Thanks in advance. Created attachment 134778 [details]
messages.log
This is NOT a jetty problem. It is a problem how netbeans executes maven tasks. Probably some kind of WorkerQueue which blocks execution of new maven goals. //8 means 4 paralel builds, one for input, one for output. private static final RequestProcessor PROCESSOR = new RequestProcessor("Maven ComandLine Output Redirection", 8); //NOI18N yes, we have this code in the nb.org codebase. The hard part here is to guess the right maximum. 4 builds consume not only 8 threads but at least 12. the additional one being managed by ExecutionEngine. Then we spawn an external process + jvm for the build. And then sometimes the maven build jvm spawns yet another jvm. according to http://vanillajava.blogspot.cz/2011/07/java-what-is-limit-to-number-of-threads.html the number of maximum threads in jvm is fairly high to be save to increase, however the number of threads is not the only limiting factor, memory processing could be as well.. This problem is stopping us from using Netbeans 7.2.1+ Isnt it possible to use some kind of configuration for that? This would kill all requirements for users with only small amount of threads (could be the default configuration) but also those who use heavy-threaded applications (like we do). http://hg.netbeans.org/core-main/rev/3eeafe9ee549 increases the count to 16 builds. will only work in dev builds + 7.4-beta, older releases are unaffected. Integrated into 'main-golden', will be available in build *201306072301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3eeafe9ee549 User: Milos Kleint <mkleint@netbeans.org> Log: #229904 increased the throughput of output processing RP to 32, meaning 16 builds in paralel. Thanks!! :) |