× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Brad,
I don't know how your RPG GETURI program works, but I would suspect that
either it or the encryption program (do they have the source for it?) has
the memory leak. 
A assume you know the consequences of memory leaks so I won't go on, but
check the RPG GetUri program. It may use ALLOC without a corresponding
DeAlloc, or even worse, it may be using a based variable that is based on a
parameter that is a different size than the based variable--this could be
why it works the first time.

-Bob Cozzi
www.RPGxTools.com
If everything is under control, you are going too slow.
- Mario Andretti


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Brad Stone
Sent: Tuesday, April 12, 2005 4:49 PM
To: RPG programming on the AS400 / iSeries
Subject: RPG/Java memory leaks? Possible?

This is a weird one.

A customer is using my GETURI application to communicate
with a web service.  This works fine.

They recently implemented an encryption application to
encrypt CC numbers.  

The two applications are not used together at all.  Except
for possibly being called one after another in the same
job, they do not interact or share data with each other.

When they call the encryption app alone, it works fine.

When they call GETURI, then call they encryption app it
works fine the first time.  Any subsequent calls to the
encryption app returns bogus data only if they follow a
call to GETURI.  But GETURI still funtions fine.  This is
only if done in the same job.  

Starting a new job (ie signing off, then signing back on)
will result in the same scenario.  Call GETURI then
encryption app, works fine.  call GETURI then the
encryption app again and bogus data is returnd from the
encryption application.

The encryption app is an ILE app that calls a Java method
using JNI.  The ILE app and GETURI both run in the QILE
activation group.

We tested changing the AG of the encryption app and that
had no effect.

Is it possible that a Java app can have a memory leak
outside of the AG at the Job level?  This is our first
guess before diving deeper into this.  But, I'm not sure
how Java/JNI and AGs work on the iSeries.

Thanks!
-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.