[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: HELP HELP HELP - Invalid heap space using HTTPAPI



Scott:

A year ago the company I am working with decided to rewrite a big part
of our system in java and move all the members files to Oracle.
The other part of the system stays in the AS400 but getting the
membership information from the Sun Micro system servers.
Since I am a sincere admirer of your work I did propose to use HTTP API
to consume the java Web Servers and get the information we need in the
AS400.
Because it is an open source, the IT director was a little concern about
the support that we can get. At that moment I did contact the HTTPAPI
group and get a response from you that we really can get a good support
from the people in the group, and I believe that very good professionals
are answering the questions we could ask.
I did create some modules that use a very similar logic as your test
programs.
After 5 months working without any problem, very fast too. We are
getting this error when we process a large amount of records.
Because all the pressure of this situation is in my shoulder I did get a
little anxious to resolve the problem.
The error is very difficult to reproduce because happens randomly, In
the other hand the Web Services are internal java programs so, it is
practically impossible to test outside Interval International.
 Because we were in trial I have the Debug in *ON all the time, but when
I was following the Charles suggestion to send him the IFS file it was
already override.
I am not an expert in java, or EXPAT, I was looking information about
the last I get the idea it was a C++ or java product.
Also, I did not know if the error was a known issue or not in the
HTTPAPI community.
So I cannot tell you how to reproduce it in your own test environments
where you can use our debugging tools.
This is something I have to do and I was trying to get some advice that
you can give me so I can do it correctly.
As you said troubleshooting is necessary.
I always respect you and your work, and I hope that maybe you can help
me in this matter.

Note: If this error happens again I will be prepare to get the HTTPAPI
debug log.

Regards,

 
JULIO C. CABRERA
Sr. Programmer Analyst, Information Technology 
Interval International
6262 Sunset Drive * Miami, Florida 33143
305.666.1861, ext. 7287 * direct 305.925.7287
cell 305.928.7925* fax 305.668.3409
Julio.Cabrera@xxxxxxxxxxxxxxxx
 
IntervalWorld.com * ResortDeveloper.com
 

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Friday, February 04, 2011 2:22 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: FW: HELP HELP HELP - Invalid heap space using HTTPAPI

hello Julio,

On January 21st, Charles Wilt suggested that you ask HTTPAPI to create a

debug file.  Have you done that?  I can't find it on the mailing list.

Yesterday, Mike Krebs asked you how we can reproduce this error.  Have 
you answered this question?  I can't find any information on how I can 
reproduce the error on my machine.

Just to clarify:  We do not know the cause of this error.  I've never 
seen it occur, and it doesn't sound like anyone else on the list has had

this error, either?   Since this isn't a well-known problem, simply 
knowing the error message isn't enough to tell us what's wrong.

To help you further, we need to be able to debug the code, line-by-line,

to see where things are going awry.  We can't do that unless you can 
tell us how to reproduce it in our own test environments where we can 
use our debugging tools!

It MIGHT help if you provided an HTTPAPI debug file.  That has a great 
deal more information in it than you've posted so far.  But, with an 
error like this (related to heap memory) I'm not even sure that'll tell 
me anything I don't know.  Still, it couldn't hurt...

Anyway... to answer your questions:

1) Neither HTTPAPI nor EXPAT uses Java.  So while it certainly is 
possible to tweak the settings of the Java Virtual Machine (JVM) on the 
"AS400" [SIC], I don't see what that has to do with the situation??

2) EXPAT_H is a copy book that provides prototypes needed for calling 
the EXPAT *SRVPGM.  It's a copy book, not a module.  The module that 
calls EXPAT is called HTTPXMLR4.

3) Since I haven't any idea as to why you're getting that error, or how 
I could make that error happen (even if I wanted to), I don't know how 
to tell you to avoid it.  Troubleshooting is necessary.

-SK


On 2/4/2011 8:28 AM, Julio Cabrera wrote:
> Scott:
>
> There is a way to increment the heap memory using parameters in the
> EXPAT call or changing settings in the JVM in the AS400?
>
> Is EXPAT_H the module that call EXPAT in your library?
>
> There is any change that I can do to avoid this error?
>
> Julio
>
>
------------------------------------------------------------------------
>
> *From:*Julio Cabrera
> *Sent:* Thursday, February 03, 2011 10:46 AM
> *To:* Julio Cabrera; 'HTTPAPI and FTPAPI Projects'; 'Scott Klement'
> *Cc:* Jason Christman
> *Subject:* RE: HELP HELP HELP - Invalid heap space using HTTPAPI
>
> Charles / Scott:
>
> Because I do have problems sending you the job log I will send only
the
> last part where the error shows.
>
> I have RPG programs to consume internal web services with LIBHTTP API.
> They work very well.
>
> The situation I have is that when the program calls to consume the
> services too many times, I got a heap memory error:
>
> MCH6906 Escape 40 02/03/11 07:47:35.051984 #hmfremi 00046C EXPAT
LIBHTTP
> *STMT
>
> To module . . . . . . . . . : XMLPARSE
>
> To procedure . . . . . . . : hashTableDestroy
>
> Statement . . . . . . . . . : 2 *PRCLT
>
> Message . . . . : Invalid heap space condition detected. Internal dump
>
> identifier (ID) 01008405.
>
> C2M1212 Diagnostic 30 02/03/11 07:47:35.061248 QC2UTIL1 QSYS *STMT
EXPAT
> LIBHTTP *STMT
>
>>From module . . . . . . . . :  QC2ALLOC
>
>>From procedure  . . . . . . : send_C2M1212__FPv
>
> Statement . . . . . . . . . : 8
>
> To module . . . . . . . . . : XMLPARSE
>
> To procedure . . . . . . . : hashTableDestroy
>
> 5722SS1 V5R4M0 060210 Display Job Log S1033693 02/03/11 08:02:02 Page
9999
>
> Job name . . . . . . . . . . : FULFILLMT User . . . . . . : QSYSOPR
> Number . . . . . . . . . . . : 433624
>
> Job description . . . . . . : QDFTJOBD Library . . . . . : QGPL
>
> MSGID TYPE SEV DATE TIME FROM PGM LIBRARY INST TO PGM LIBRARY INST
>
> Statement . . . . . . . . . : 2
>
> Message . . . . : The pointer parameter passed to free or realloc is
not
>
> valid.
>
> This error only happens whe there are a great amount of records to
process.
>
> Please I need help with this problem specially because I was the one
> that suggest to use HTTP API in our processes.
>
> I am attaching the complete joblog of the error is too big so I am
> sending more than one email...
>
> Thanks
>
> JULIO C. CABRERA
>
> Sr. Programmer Analyst, Information Technology
>
> Interval International
>
> 6262 Sunset Drive * Miami, Florida 33143
>
> 305.666.1861, ext. 7287 * direct 305.925.7287
>
> cell 305.928.7925* fax 305.668.3409
>
> Julio.Cabrera@xxxxxxxxxxxxxxxx
>
> IntervalWorld.com * ResortDeveloper.com
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles
Wilt
> Sent: Friday, January 21, 2011 3:02 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: Invalid heap space using HTTPAPI
>
> Julio,
>
> Turn debug logging on and post the resulting log..
>
> http_debug(*ON);
>
> Charles
>
> On Fri, Jan 21, 2011 at 2:42 PM, Julio Cabrera
>
> <Julio.Cabrera@xxxxxxxxxxxxxxxx> wrote:
>
>>
>
>>
>
>>  Gentlemen:
>
>>
>
>>
>
>>  I need help with this error.
>
>>
>
>>  It is happening with an RPG service using HTTPAPI, and normally
>
>>  happens when the web service is called multiple times.
>
>>
>
>>
>
>>  [cid:image002.jpg@01CBB979.7E576830]
>
>>
>
>>
>
>>  Any help will be very appreciated.
>
>>
>
>>
>
>>  Thanks,
>
>>
>
>>
>
>>
>
>>  JULIO C. CABRERA
>
>>
>
>>  Sr. Programmer Analyst, Information Technology
>
>>
>
>>  Interval International
>
>>
>
>>  6262 Sunset Drive o Miami, Florida 33143
>
>>
>
>>  305.666.1861, ext. 7287 o direct 305.925.7287
>
>>
>
>>  cell 305.928.7925 o fax 305.668.3409
>
>>
>
>>  [1]Julio.Cabrera@xxxxxxxxxxxxxxxx
>
>>
>
>>
>
>>  IntervalWorld.com o ResortDeveloper.com
>
>>
>
>>
>
>>
>
>>
>
>>
______________________________________________________________________
>
>>  _______
>
>>  Scanned by IBM Email Security Management Services powered by
>
>>  MessageLabs. For more information please visit
http://www.ers.ibm.com
>
>>
______________________________________________________________________
>
>>  _______
>
>>
>
>>  References
>
>>
>
>>  1. mailto:Julio.Cabrera@xxxxxxxxxxxxxxxx
>
>>
>
>>
-----------------------------------------------------------------------
>
>>  This is the FTPAPI mailing list. To unsubscribe, please go to:
>
>>  http://www.scottklement.com/mailman/listinfo/ftpapi
>
>>
-----------------------------------------------------------------------
>
>>
>
>>
>
>
-----------------------------------------------------------------------
>
> This is the FTPAPI mailing list. To unsubscribe, please go to:
>
> http://www.scottklement.com/mailman/listinfo/ftpapi
>
>
-----------------------------------------------------------------------
>
>
________________________________________________________________________
_____
>
> Scanned by IBM Email Security Management Services powered by
MessageLabs.
>
>
________________________________________________________________________
_____
>
>
>
________________________________________________________________________
_____
> Scanned by IBM Email Security Management Services powered by
> MessageLabs. For more information please visit http://www.ers.ibm.com
>
________________________________________________________________________
_____

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

________________________________________________________________________
_____
Scanned by IBM Email Security Management Services powered by
MessageLabs.
________________________________________________________________________
_____

_____________________________________________________________________________
Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www.ers.ibm.com
_____________________________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------