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 - wrong JVM options provided for GlassFish manual attach if installed with spaces in directory name
Summary: wrong JVM options provided for GlassFish manual attach if installed with spac...
Status: RESOLVED DUPLICATE of bug 205328
Alias: None
Product: profiler
Classification: Unclassified
Component: Attach (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 11:32 UTC by gholmer
Modified: 2012-04-11 11:07 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 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 ***