[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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 o Miami, Florida 33143
305.666.1861, ext. 7287 o direct 305.925.7287
cell 305.928.7925 o fax 305.668.3409
Julio.Cabrera@xxxxxxxxxxxxxxxx
IntervalWorld.com o 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
______________________________________________________________________
_______
CPF4028 Diagnostic 10 02/03/11 07:47:34.731832 QDBOPEN QSYS 154D MBPIMBGEN OBJLIB *STMT
To module . . . . . . . . . : MBPIMBGEN
To procedure . . . . . . . : MBPIMBGEN
Statement . . . . . . . . . : 1000001
Message . . . . : Open of member MBFIMBTRK was changed to SEQONLY(*NO).
Cause . . . . . : Member MBFIMBTRK file MBFIMBTRK in library FILELIB was
opened with the SEQONLY(*YES) parameter specified in the program or on the
Override Database File (OVRDBF) command. However, the parameter has been
changed to SEQONLY(*NO) because of condition 1 shown below: 1 - The program
opened member MBFIMBTRK for output operations only and SEQONLY(*YES) was
specified with the default number of records. SEQONLY(*YES) was changed to
SEQONLY(*NO) to allow the program to handle duplicate key, conversion
mapping, key mapping, and select or omit errors, or both select and omit
errors at the time of the output operation. 2 - The program opened the
member for other than input or output operations only. 3 - The program
opened a logical file member for output operations only and that member is
based on more than one physical file member. 4 - The record length plus the
feedback information for the member is greater than 32,767 bytes. 5 - The
commitment control level of *ALL is active and the member was opened for
input operations only, or the commitment control levels of either *ALL, *CS,
or *CHG were specified for a distributed file that was opened for input
operations only. 6 - The program opened member MBFIMBTRK for output
operations only and SEQONLY(*YES) was specified with the default number of
records and duplicate key feedback or insert key feedback was requested.
SEQONLY(*YES) was changed to SEQONLY(*NO) to allow duplicate key feedback or
insert key feedback to be provided on a record by record basis. 7 - The
program opened a query member that contains at least one subselect. Either
the outermost subselect provided a correlated reference for a subquery or
the outermost subselect processed a subquery with an IN, = ANY, or <> ALL
subquery predicate operator, which is treated as a correlated reference.
Only one record can be retrieved at a time from this type of query. 8 - The
file has referential constraints, triggers, or is a distributed file.
SEQONLY(*YES) was changed to SEQONLY(*NO) to allow the trigger programs to
be called or the referential constraints to be enforced on a record by
record basis, or because SEQONLY(*YES) is not allowed for the distributed
file open. 9 - The file is a distributed file opened for DSTDTA(*CURRENT).
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
One or more of the nodes in this file have been implemented using join
logical file processing. 10 - The file, or a physical file on which the file
is based, contains File Link Control DataLink fields. SEQONLY(*YES) was
changed to SEQONLY(*NO) to allow the DataLink fields in each record to be
processed. Recovery . . . : For condition 1 or condition 6: -- If
changing parameter SEQONLY(*YES) to SEQONLY(*NO) is not acceptable, use the
Override Database File (OVRDBF) command to override the parameter
SEQONLY(*NO) by specifying SEQONLY(*YES N) where N indicates the number of
records. Then try your request again.
CPC2197 Completion 00 02/03/11 07:47:34.738512 QLICHLBL QSYS 013C UTCGRP1LIB OBJLIB 002C
Message . . . . : Library G1@@PGMS removed from library list.
Cause . . . . . : If the RMVLIBLE command was used, G1@@PGMS was removed
from the user library list. If the CHGSYSLIBL command was used, G1@@PGMS
was removed from the system portion of the library list.
CPC2197 Completion 00 02/03/11 07:47:34.738544 QLICHLBL QSYS 013C UTCGRP1LIB OBJLIB 0034
Message . . . . : Library G1C1PGMS removed from library list.
Cause . . . . . : If the RMVLIBLE command was used, G1C1PGMS was removed
from the user library list. If the CHGSYSLIBL command was used, G1C1PGMS
was removed from the system portion of the library list.
CPF2103 Escape 40 02/03/11 07:47:34.936560 QLICUSRL QSYS 0196 GETSTACK OBJLIB 000E
Message . . . . : Library TAATOOL already exists in library list.
Cause . . . . . : The library TAATOOL already exists in the library search
list. The library was not added. Recovery . . . : If TAATOOL is the
library you specified omit the command. If you did not specify library
TAATOOL then change the library name (LIB parameter). Then try the command
again.
CPF2103 Escape 40 02/03/11 07:47:34.981352 QLICUSRL QSYS 0196 GETSTACK OBJLIB 000E
Message . . . . : Library TAATOOL already exists in library list.
Cause . . . . . : The library TAATOOL already exists in the library search
list. The library was not added. Recovery . . . : If TAATOOL is the
library you specified omit the command. If you did not specify library
TAATOOL then change the library name (LIB parameter). Then try the command
again.
CPF2103 Escape 40 02/03/11 07:47:34.985680 QLICUSRL QSYS 0196 GETSTACK OBJLIB 000E
Message . . . . : Library TAATOOL already exists in library list.
Cause . . . . . : The library TAATOOL already exists in the library search
list. The library was not added. Recovery . . . : If TAATOOL is the
library you specified omit the command. If you did not specify library
TAATOOL then change the library name (LIB parameter). Then try the command
again.
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.
Cause . . . . . : The pointer parameter passed to free or realloc was not
valid. This caused your function call to fail. Recovery . . . : Correct
the invalid pointer parameter being passed to free or realloc. Technical
description . . . . . . . . : The value of the pointer passed to free or
realloc is X'8000000000000000ECEDAAB486EDF650'.
MCH6906 Escape 40 02/03/11 07:47:35.061944 #hmfremi 00046C EXPAT LIBHTTP *STMT
To module . . . . . . . . . : XMLPARSE
To procedure . . . . . . . : hashTableDestroy
Statement . . . . . . . . . : 2 *PRCLT
Message . . . . : Invalid heap space condition detected. Internal dump
identifier (ID) 01008406.
C2M1212 Diagnostic 30 02/03/11 07:47:35.062024 QC2UTIL1 QSYS *STMT EXPAT LIBHTTP *STMT
From module . . . . . . . . : QC2ALLOC
From procedure . . . . . . : send_C2M1212__FPv
Statement . . . . . . . . . : 8
To module . . . . . . . . . : XMLPARSE
To procedure . . . . . . . : hashTableDestroy
Statement . . . . . . . . . : 2
Message . . . . : The pointer parameter passed to free or realloc is not
valid.
Cause . . . . . : The pointer parameter passed to free or realloc was not
valid. This caused your function call to fail. Recovery . . . : Correct
the invalid pointer parameter being passed to free or realloc. Technical
description . . . . . . . . : The value of the pointer passed to free or
realloc is X'8000000000000000ECEDAAB486EE0B30'.
CPF2103 Escape 40 02/03/11 07:47:35.062144 QLICUSRL QSYS 0196 GETSTACK OBJLIB 000E
Message . . . . : Library TAATOOL already exists in library list.
Cause . . . . . : The library TAATOOL already exists in the library search
list. The library was not added. Recovery . . . : If TAATOOL is the
library you specified omit the command. If you did not specify library
TAATOOL then change the library name (LIB parameter). Then try the command
again.
CPF2103 Escape 40 02/03/11 07:47:35.066376 QLICUSRL QSYS 0196 GETSTACK OBJLIB 000E
Message . . . . : Library TAATOOL already exists in library list.
Cause . . . . . : The library TAATOOL already exists in the library search
list. The library was not added. Recovery . . . : If TAATOOL is the
library you specified omit the command. If you did not specify library
TAATOOL then change the library name (LIB parameter). Then try the command
again.
CPC2196 Completion 00 02/03/11 07:47:35.071112 QLICUSRL QSYS 0113 UTCGRP1LIB OBJLIB 0019
Message . . . . : Library G1@@PGMS added to library list.
Cause . . . . . : If the ADDLIBLE command was used, G1@@PGMS was added to
the user library list. If the CHGSYSLIBL command was used, G1@@PGMS was
added to the system portion of the library list.
CPC2196 Completion 00 02/03/11 07:47:35.071152 QLICUSRL QSYS 0113 UTCGRP1LIB OBJLIB 0021
Message . . . . : Library G1C1PGMS added to library list.
Cause . . . . . : If the ADDLIBLE command was used, G1C1PGMS was added to
the user library list. If the CHGSYSLIBL command was used, G1C1PGMS was
added to the system portion of the library list.
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
CPF2103 Escape 40 02/03/11 07:47:35.079584 QLICUSRL QSYS 0196 G1CHGSYSLB G1@@PGMS 0015
Message . . . . : Library G1@@PGMS already exists in library list.
Cause . . . . . : The library G1@@PGMS already exists in the library search
list. The library was not added. Recovery . . . : If G1@@PGMS is the
library you specified omit the command. If you did not specify library
G1@@PGMS then change the library name (LIB parameter). Then try the command
again.
CPF2103 Escape 40 02/03/11 07:47:35.079728 QLICUSRL QSYS 0196 G1CHGSYSLB G1@@PGMS 0015
Message . . . . : Library G1C1PGMS already exists in library list.
Cause . . . . . : The library G1C1PGMS already exists in the library search
list. The library was not added. Recovery . . . : If G1C1PGMS is the
library you specified omit the command. If you did not specify library
G1C1PGMS then change the library name (LIB parameter). Then try the command
again.
CPF4028 Diagnostic 10 02/03/11 07:47:35.087472 QDBOPEN QSYS 154D MBPIMBGEN OBJLIB *STMT
To module . . . . . . . . . : MBPIMBGEN
To procedure . . . . . . . : MBPIMBGEN
Statement . . . . . . . . . : 1000001
Message . . . . : Open of member MBFIMBTRK was changed to SEQONLY(*NO).
Cause . . . . . : Member MBFIMBTRK file MBFIMBTRK in library FILELIB was
opened with the SEQONLY(*YES) parameter specified in the program or on the
Override Database File (OVRDBF) command. However, the parameter has been
changed to SEQONLY(*NO) because of condition 1 shown below: 1 - The program
opened member MBFIMBTRK for output operations only and SEQONLY(*YES) was
specified with the default number of records. SEQONLY(*YES) was changed to
SEQONLY(*NO) to allow the program to handle duplicate key, conversion
mapping, key mapping, and select or omit errors, or both select and omit
errors at the time of the output operation. 2 - The program opened the
member for other than input or output operations only. 3 - The program
opened a logical file member for output operations only and that member is
based on more than one physical file member. 4 - The record length plus the
feedback information for the member is greater than 32,767 bytes. 5 - The
commitment control level of *ALL is active and the member was opened for
input operations only, or the commitment control levels of either *ALL, *CS,
or *CHG were specified for a distributed file that was opened for input
operations only. 6 - The program opened member MBFIMBTRK for output
operations only and SEQONLY(*YES) was specified with the default number of
records and duplicate key feedback or insert key feedback was requested.
SEQONLY(*YES) was changed to SEQONLY(*NO) to allow duplicate key feedback or
insert key feedback to be provided on a record by record basis. 7 - The
program opened a query member that contains at least one subselect. Either
the outermost subselect provided a correlated reference for a subquery or
the outermost subselect processed a subquery with an IN, = ANY, or <> ALL
subquery predicate operator, which is treated as a correlated reference.
Only one record can be retrieved at a time from this type of query. 8 - The
file has referential constraints, triggers, or is a distributed file.
SEQONLY(*YES) was changed to SEQONLY(*NO) to allow the trigger programs to
be called or the referential constraints to be enforced on a record by
record basis, or because SEQONLY(*YES) is not allowed for the distributed
file open. 9 - The file is a distributed file opened for DSTDTA(*CURRENT).
One or more of the nodes in this file have been implemented using join
logical file processing. 10 - The file, or a physical file on which the file
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
is based, contains File Link Control DataLink fields. SEQONLY(*YES) was
changed to SEQONLY(*NO) to allow the DataLink fields in each record to be
processed. Recovery . . . : For condition 1 or condition 6: -- If
changing parameter SEQONLY(*YES) to SEQONLY(*NO) is not acceptable, use the
Override Database File (OVRDBF) command to override the parameter
SEQONLY(*NO) by specifying SEQONLY(*YES N) where N indicates the number of
records. Then try your request again.
CPC2197 Completion 00 02/03/11 07:47:35.094152 QLICHLBL QSYS 013C UTCGRP1LIB OBJLIB 002C
Message . . . . : Library G1@@PGMS removed from library list.
Cause . . . . . : If the RMVLIBLE command was used, G1@@PGMS was removed
from the user library list. If the CHGSYSLIBL command was used, G1@@PGMS
was removed from the system portion of the library list.
CPC2197 Completion 00 02/03/11 07:47:35.094184 QLICHLBL QSYS 013C UTCGRP1LIB OBJLIB 0034
Message . . . . : Library G1C1PGMS removed from library list.
Cause . . . . . : If the RMVLIBLE command was used, G1C1PGMS was removed
from the user library list. If the CHGSYSLIBL command was used, G1C1PGMS
was removed from the system portion of the library list.
MCH6906 Escape 40 02/03/11 07:47:35.120760 #hmfremi 00046C QLEAWI QSYS *STMT
To module . . . . . . . . . : QLESM
To procedure . . . . . . . : CEEFRST
Statement . . . . . . . . . : 3
Message . . . . : Invalid heap space condition detected. Internal dump
identifier (ID) 01008407.
CEE9902 Escape 30 02/03/11 07:47:35.136752 QLEAWI QSYS *STMT HTTPAPIR4 LIBHTTP *STMT
From module . . . . . . . . : QLETOOL
From procedure . . . . . . : Q LE AWIRaise
Statement . . . . . . . . . : 184
To module . . . . . . . . . : HTTPUTILR4
To procedure . . . . . . . : XDEALLOC
Statement . . . . . . . . . : 3447
Message . . . . : Unexpected user error occurred in CEEFRST.
Cause . . . . . : An unexpected error occurred in the application
programming interface CEEFRST. See previous messages for details.
CPF9999 Escape 40 02/03/11 07:47:35.168408 QMHUNMSG *N MBPFLCARRI OBJLIB *STMT
To module . . . . . . . . . : MBPFLCARRI
To procedure . . . . . . . : MBPFLCARRI
Statement . . . . . . . . . : 1256
Message . . . . : Function check. CEE9902 unmonitored by HTTPAPIR4 at
statement 0000003447, instruction X'0000'.
Cause . . . . . : An escape exception message was sent to a program which
did not monitor for that message. The full name of the program to which the
unmonitored message was sent is HTTPAPIR4 HTTPUTILR4 XDEALLOC. At the time
the message was sent the program was stopped at higher level language
statement number(s) 0000003447. If more than one statement number is shown,
the program was a bound program. Optimization does not allow a single
statement number to be determined. If *N is shown as a value, it means the
actual value was not available. Recovery . . . : See the low level
messages previously listed to locate the cause of the function check.
Correct any errors, and then try the request again.
RNQ0202 Sender copy 99 02/03/11 07:47:35.174952 QRNXIE QSYS *STMT QRNXIE QSYS *STMT
From module . . . . . . . . : QRNXMSG
From procedure . . . . . . : InqMsg
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 . . . . . . . . . : 3
To module . . . . . . . . . : QRNXMSG
To procedure . . . . . . . : InqMsg
Statement . . . . . . . . . : 3
Message . . . . : The call to GETEMAIL ended in error (C G D F).
Cause . . . . . : RPG procedure MBPFLCARRI in program OBJLIB/MBPFLCARRI at
statement 1256 called program or procedure GETEMAIL, which ended in error.
If the name is *N, the call was a bound call by procedure pointer. Recovery
. . . : Check the job log for more information on the cause of the error
and contact the person responsible for program maintenance. Possible choices
for replying to message . . . . . . . . . . . . . . . : D -- Obtain RPG
formatted dump. S -- Obtain system dump. G -- Continue processing at *GETIN.
C -- Cancel. F -- Obtain full formatted dump.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------