Install Help on Mac OS X 10.5

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Install Help on Mac OS X 10.5

Rupp Peter - prupp
Bruce,
Can you determine the last class that seems to be loaded before netrexxc seems to hang?   Is truss available on the Mac platform?  It's a unix utility that allows you trace a process's system calls and see what it's doing.  Just a thought...
P.

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Bruce Skelly
Sent: Friday, February 05, 2010 11:23 AM
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] Install Help on Mac OS X 10.5

As I mentioned to David, I think that if it was a memory issue, it  
wouldn't take over an hour (it's now been running over an hour and a  
half) to run out of memory.  I think the looping is happening in just  
one class, perhaps just one statement, and therefore you would see  
each class being loaded only once.

Bruce
On Feb 5, 2010, at 8:41 AM, Rupp Peter - prupp wrote:

> Hi folks,
>
> This is a non-technical observervation....
>
> But, It seems the looping (i.e, "Repeated a total of 29 times.") is  
> occurring after an out-of-memory exception occurs.  However,  
> previous to the out-of-memory exception, there appears no looping,  
> but just normal, (but numerous) loads of various service classes.  
> I'm not sure what the behavior of netRexx is should it run out of  
> memory at that exact point (hard to reproduce).
>
> I also sorted your java class load sequence (from your previous  
> email) looking for duplicates....and each class is loaded once, so  
> it doesn't appear to be looping at all (I don't' see multiple load  
> attempts of various classes).
>
>
>
> Perhaps your system is seriously memory constrained at the time of  
> the compile, or perhaps your shell/process is restricted in some  
> other way? Just a thought...
>
> Pete
>
>
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]
> ] On Behalf Of David Requena
> Sent: Friday, February 05, 2010 10:38 AM
> To: IBM Netrexx
> Subject: Re: [Ibm-netrexx] Install Help on Mac OS X 10.5
>
> Hmm... That's very odd, you're running out of heap ram just by  
> loading the compiler.
> As far as I know there ins an absolute minimum of 2mb in java 1.5  
> but real initial heap is affected by amount of installed physical  
> ram. How much that be in your box?
>
> You could try passing increasing minimum heap values to the jvm with  
> the -Xsm option. Definitely this shouldn't be necessary under usual  
> circumstances for helloworld type programme.
>
>
>
> BlackBerry de movistar, all? donde est?s est? tu oficin@
>
> -----Original Message-----
> From: Bruce Skelly <[hidden email]>
> Date: Thu, 4 Feb 2010 16:09:54
> To: IBM Netrexx<[hidden email]>
> Subject: Re: [Ibm-netrexx] Install Help on Mac OS X 10.5
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
> ***************************************************************************
> The information contained in this communication is confidential, is
> intended only for the use of the recipient named above, and may be  
> legally
> privileged.
>
> If the reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of  
> this
> communication is strictly prohibited.
>
> If you have received this communication in error, please resend this
> communication to the sender and delete the original message or any  
> copy
> of it from your computer system.
>
> Thank You.
> ****************************************************************************
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>


_______________________________________________
Ibm-netrexx mailing list
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Install Help on Mac OS X 10.5

Bruce Skelly
In reply to this post by Rupp Peter - prupp
I'm looking at the information about the java process in Activity  
Monitor:

Real Memory - 78.29MB
Virtual Memory - 256.14MB
Shared Memory - 12.45MB
Private Memory - 68.82MB and growing
Virtual Private Memory 187.02MB and growing

Faults (page Faults?) 10.3M and growing
Unix System Calls  25.7M and growing.
CPU time 21:25

I do see in the open Files and Ports section that it appears to be  
searching for something, it looks like it is opening and closing  
directories all over the filesystem.  So maybe I'm wrong, and this is  
a CLASSPATH problem after all.   In that case I would still need help  
with an appropriate CLASSPATH, because those that have been suggested,  
don't seem to work.

It just finished,

Finish 09:39:15
Start  07:52:52

Elapsed 01:46:23

Bruce
On Feb 5, 2010, at 8:41 AM, Rupp Peter - prupp wrote:

> Hi folks,
>
> This is a non-technical observervation....
>
> But, It seems the looping (i.e, "Repeated a total of 29 times.") is  
> occurring after an out-of-memory exception occurs.  However,  
> previous to the out-of-memory exception, there appears no looping,  
> but just normal, (but numerous) loads of various service classes.  
> I'm not sure what the behavior of netRexx is should it run out of  
> memory at that exact point (hard to reproduce).
>
> I also sorted your java class load sequence (from your previous  
> email) looking for duplicates....and each class is loaded once, so  
> it doesn't appear to be looping at all (I don't' see multiple load  
> attempts of various classes).
>
>
>
> Perhaps your system is seriously memory constrained at the time of  
> the compile, or perhaps your shell/process is restricted in some  
> other way? Just a thought...
>
> Pete
>
>
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]
> ] On Behalf Of David Requena
> Sent: Friday, February 05, 2010 10:38 AM
> To: IBM Netrexx
> Subject: Re: [Ibm-netrexx] Install Help on Mac OS X 10.5
>
> Hmm... That's very odd, you're running out of heap ram just by  
> loading the compiler.
> As far as I know there ins an absolute minimum of 2mb in java 1.5  
> but real initial heap is affected by amount of installed physical  
> ram. How much that be in your box?
>
> You could try passing increasing minimum heap values to the jvm with  
> the -Xsm option. Definitely this shouldn't be necessary under usual  
> circumstances for helloworld type programme.
>
>
>
> BlackBerry de movistar, all? donde est?s est? tu oficin@
>
> -----Original Message-----
> From: Bruce Skelly <[hidden email]>
> Date: Thu, 4 Feb 2010 16:09:54
> To: IBM Netrexx<[hidden email]>
> Subject: Re: [Ibm-netrexx] Install Help on Mac OS X 10.5
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>
> ***************************************************************************
> The information contained in this communication is confidential, is
> intended only for the use of the recipient named above, and may be  
> legally
> privileged.
>
> If the reader of this message is not the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of  
> this
> communication is strictly prohibited.
>
> If you have received this communication in error, please resend this
> communication to the sender and delete the original message or any  
> copy
> of it from your computer system.
>
> Thank You.
> ****************************************************************************
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>


Reply | Threaded
Open this post in threaded view
|

Install Help on Mac OS X 10.5

rvjansen
In reply to this post by Bruce Skelly
Hi Bruce,

this is java's -verbose and not the one from NetRexx ;-) - that one is specified as an option to NetRexxC. But it is just what we needed. Java has no business in opening anything other than classes.jar fand NetRexxC.jar for a simple program like hello.nrx

This confirms my theory that the laguage processor 'sees' all the java archives from the JavaVm framework. These should not be on the classpath - it seems that still the whole directory is on the classpath.

I see that you are running this from your homedir. I mostly go one level deeper, as I have a ~/lib directory that contains a lot of java archives that I do not want scanned. I would suggest the following:

take NetRexx out of the 'blessed' java extensions library. Make a CLASSPATH with only NetRexxC.jar and the classes.jar on it. Rerun.

best regards,

Ren? Jansen.

On 5 feb 2010, at 16:48, Bruce Skelly wrote:

> Ok, here is a "verbose" of what I'm doing.  As you can see it is looping until it runs out of memory.  See comments in line.  
> Bruce
> P.S.  This is the third attempt to send this, due to message size limits on the list server.  I have severely trimmed the output. Thanks for helping Ian.
>
> [hidden email] /Users/bjskelly> java -verbose COM.ibm.netrexx.process.NetRexxC hello
> [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar]
> [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20100205/6f6e6a51/attachment.html
Reply | Threaded
Open this post in threaded view
|

Install Help on Mac OS X 10.5

Bruce Skelly
Ren?,

Thanks for your patience.  I believe that I've sorted it out.  I don't  
understand why.   The CLASSPATH that works for me is as follows:

CLASSPATH=/Library/Java/Extensions/NetRexxC.jar:/System/Library/
Frameworks/JavaVM.framework/Classes/classes.jar

I truly don't understand why, when it has both of these jar files  
open, it can't find the necessary classes.

With out the NetRexxC.jar in CLASSPATH you get the following error:
  +++ Error: The class 'netrexx.lang.Rexx' cannot be found

and with out classes.jar you get this error:
  +++ Error: The class 'java.lang.Object' cannot be found

So now I can get a clean compile.  Next problem.  Execution fails.

[hidden email] /Users/bjskelly> NetRexxC.sh -run hello
NetRexx portable processor, version 2.05
Copyright (c) IBM Corporation, 2005.  All rights reserved.
Program hello.nrx
Compilation of 'hello.nrx' successful
Running hello...
Exception in thread "main" java.lang.NoClassDefFoundError: hello
[hidden email] /Users/bjskelly>

To get hello.class to run, I have to unset the CLASSPATH.


[hidden email] /Users/bjskelly> echo $CLASSPATH
/Library/Java/Extensions/NetRexxC.jar:/System/Library/Frameworks/
JavaVM.framework/Classes/classes.jar
[hidden email] /Users/bjskelly> java hello
Exception in thread "main" java.lang.NoClassDefFoundError: hello
[hidden email] /Users/bjskelly> unset CLASSPATH
[hidden email] /Users/bjskelly> echo $CLASSPATH

[hidden email] /Users/bjskelly> java hello
Hello World!
[hidden email] /Users/bjskelly>

Bruce
On Feb 5, 2010, at 9:54 AM, Ren? Jansen wrote:

> Hi Bruce,
>
> this is java's -verbose and not the one from NetRexx ;-) - that one  
> is specified as an option to NetRexxC. But it is just what we  
> needed. Java has no business in opening anything other than  
> classes.jar fand NetRexxC.jar for a simple program like hello.nrx
>
> This confirms my theory that the laguage processor 'sees' all the  
> java archives from the JavaVm framework. These should not be on the  
> classpath - it seems that still the whole directory is on the  
> classpath.
>
> I see that you are running this from your homedir. I mostly go one  
> level deeper, as I have a ~/lib directory that contains a lot of  
> java archives that I do not want scanned. I would suggest the  
> following:
>
> take NetRexx out of the 'blessed' java extensions library. Make a  
> CLASSPATH with only NetRexxC.jar and the classes.jar on it. Rerun.
>
> best regards,
>
> Ren? Jansen.
>
> On 5 feb 2010, at 16:48, Bruce Skelly wrote:
>
>> Ok, here is a "verbose" of what I'm doing.  As you can see it is  
>> looping until it runs out of memory.  See comments in line.
>> Bruce
>> P.S.  This is the third attempt to send this, due to message size  
>> limits on the list server.  I have severely trimmed the output.  
>> Thanks for helping Ian.
>>
>> [hidden email] /Users/bjskelly> java -verbose  
>> COM.ibm.netrexx.process.NetRexxC hello
>> [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
>> Classes/classes.jar]
>> [Opened /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
>> Classes/ui.jar]
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns.hursley.ibm.com/pipermail/ibm-netrexx/attachments/20100205/67dd3b19/attachment.html
12