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 205349

Summary: wrong JVM options provided for GlassFish manual attach if installed with spaces in directory name
Product: profiler Reporter: gholmer <gholmer>
Component: AttachAssignee: J Bachorik <yardus>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description gholmer 2011-11-21 11:32:05 UTC
Follow instructions in Profiler Test Suite TS71, section 10.5.

0) Install NetBeans to directory with space in the name, e.g.
/mnt/common/NetBeans 7.1
1) Attach profiler, select "define..." at bottom of dialog.
2) Target GlassFish, Local/Direct Attach.
3) Click Next twice, select Manual integration, click next.
4) Instructions in dialog read as follows:
...
Step 4: Place the following <profiler> xml element right after the <java-config> before the first <jvm-options> element in domain.xml:
<profiler enabled="true" name="NetBeansProfiler">
  <jvm-options>-XX:+UseLinuxPosixThreadCPUClocks</jvm-options>
  <jvm-options>-agentpath:/mnt/common/NetBeans</jvm-options>
  <jvm-options>7.1/profiler/lib/deployed/jdk16/linux/libprofilerinterface.so=/mnt/common/NetBeans</jvm-options>
  <jvm-options>7.1/profiler/lib,5140</jvm-options>
</profiler>

Extra options appear to have been generated because of the space in the directory name.
Comment 1 J Bachorik 2012-04-11 11:07:37 UTC
Effectively a duplicate of #203528 - a shared code is used to calculate proper jvm args.

*** This bug has been marked as a duplicate of bug 205328 ***