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.

Bug 149545 - max ruby runtimes must be set to 1 for stable ruby debugging on V3
Summary: max ruby runtimes must be set to 1 for stable ruby debugging on V3
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 19:23 UTC by _ pcw
Modified: 2008-10-09 07:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2008-10-08 19:23:04 UTC
Newest builds of glassfish V3 (since addition of dynamic pool) require an additional property to force the maximum
number of ruby runtimes that can be created to be 1 when ruby debugging is enabled, as we can only debug one JRuby
instance at at time.

Must pass -J-Djruby.runtime.max=1 when starting server in "ruby debug" mode.
Comment 1 _ pcw 2008-10-08 19:25:20 UTC
Proposed patch:

--- a/glassfish.jruby/src/org/netbeans/modules/glassfish/jruby/JRubyServerModule.java   Wed Oct 01 11:42:01 2008 -0700
+++ b/glassfish.jruby/src/org/netbeans/modules/glassfish/jruby/JRubyServerModule.java   Mon Oct 06 18:23:18 2008 -0700
@@ -434,6 +434,7 @@ public class JRubyServerModule implement
         // JVM properties
         builder.append(" -Djruby.home=");
         builder.append(ServerUtilities.quote(platform.getHome().getAbsolutePath()));
+        builder.append(" -Djruby.runtime.max=1");

         String grizzlyVMParams = System.getProperty("grizzly.jruby.vm.params");
         if(grizzlyVMParams != null) {
Comment 2 _ pcw 2008-10-08 21:20:55 UTC
Fixed, awaiting integration notice.

http://hg.netbeans.org/main/rev/0012ffc8eb7f

Comment 3 _ pcw 2008-10-09 07:00:19 UTC
Should now be integrated into 'main-golden', build *200810090201* on http://bits.netbeans.org/dev/nightly/ (upload may
still be in progress)