Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318288 - The ParseHeapDump script doesn't run on AIX
Summary: The ParseHeapDump script doesn't run on AIX
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: Other AIX Motif
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 05:43 EDT by Andrew Johnson CLA
Modified: 2010-07-06 04:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Johnson CLA 2010-06-29 05:43:46 EDT
The ParseHeapDump doesn't run.

ksh: /tmp/memoryanalyzer/ParseHeapDump.sh:  not found.


The problem seems to be CR/LF not LF in the script.
Comment 1 Andrew Johnson CLA 2010-06-29 06:19:36 EDT
I've removed the CR/LF by changing the svn:mime-type to text/plain, then locally renaming the file to ParseHeapDump.sh.txt, then file->convert line delimiters->Unix, then renamed the file back to ParseHeapDump.sh
Comment 2 Andrew Johnson CLA 2010-07-01 09:07:29 EDT
I've created a ParseHeapDump2.sh script for AIX which will run with 32-bit and 64-bit Java.
Comment 3 Krum Tsvetkov CLA 2010-07-01 09:16:01 EDT
Does it make sense to have both files included in the RCP? I think it will be better to give to the user only one script which is working on the platform. Or did I interpret wrongly the build.properties file?
Comment 4 Andrew Johnson CLA 2010-07-01 10:02:21 EDT
The existing ParseHeapDump.sh script runs on AIX with 32-bit Java.

Is it better to use this script which will also use MemoryAnalyzer.ini for heap size, and other parameters the same as the GUI version etc.
http://wiki.eclipse.org/index.php/MemoryAnalyzer/FAQ#Out_of_Memory_Error_while_Running_the_Memory_Analyzer

or to always use the new ParseHeapDump2.sh script (renamed to ParseHeapDump.sh) on AIX?
Comment 5 Krum Tsvetkov CLA 2010-07-02 03:22:14 EDT
I would say either rename  ParseHeapDump2.sh to  ParseHeapDump.sh and use only it, or rename  ParseHeapDump2.sh to  ParseHeapDump64.sh and keep both. I just didn't like the 2 at the end, as it tells nothing about when to use this script.
Comment 6 Andrew Johnson CLA 2010-07-06 04:56:30 EDT
I've just put one script for AIX which should run with 32-bit and 64-bit Java.