[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Invalid heap space using HTTPAPI
Charles:
After a while trying to reproduce the error, I wrote a program
(TSTCONTACT) that reads our member file with almost 5 million records
in a loop and call my program getContactInfo. After 176,677 records,
it gives the heap memory error:
[cid:image002.jpg@01CBCE9A.3A7EE030]
The error happens in the dealloc line (3448):
Program: HTTPAPIR4 Library: LIBHTTP Module:
HTTPUTILR4
3444 3443 D xdealloc
PI
3445 3444 D ptr
*
3446 3445 /if
defined(TERASPACE)
3447 3446
/else
3448 3447 C dealloc
ptr
3449 3448
/endif
3450 3449 C eval ptr =
*null
3451 3450 P
E
3452 3451
3453
3452
3454 3453
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3455 3454 * xrealloc(): re-allocate
memory
3456 3455
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3457 3456 P xrealloc B
export
3458 3457 D xrealloc PI
*
The http_debug was *ON
I include here the source of the Test program, The source of the RPG
to consume the Web Service and the txt of the debug.
I still do not have any clue of what happened.
I will appreciate if you can give me any idea.
Thank you very much,
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
______________________________________________________________________
_______
ÿþ 5 7 2 2 W D S V 5 R 4 M 0 0 6 0 2 1 0 R N I B M I L E R P G Q T E M P / T S T C O N T A C T I I M I A D E V 0 2 / 1 7 / 1 1 1 1 : 3 6 : 0 0 P a g e 1
C o m m a n d . . . . . . . . . . . . : C R T R P G M O D
I s s u e d b y . . . . . . . . . . : J C A B R E R A
M o d u l e . . . . . . . . . . . . . : T S T C O N T A C T
L i b r a r y . . . . . . . . . . . : Q T E M P
T e x t ' d e s c r i p t i o n ' . . . . . . . : * S R C M B R T X T
S o u r c e M e m b e r . . . . . . . . . : T S T C O N T A C T
S o u r c e F i l e . . . . . . . . . . : Q R P G L E S R C
L i b r a r y . . . . . . . . . . . : L I B J C A
C C S I D . . . . . . . . . . . . : 3 7
T e x t ' d e s c r i p t i o n ' . . . . . . . : T e s t B a s i c C o n t a c t W e b S e r v i c e
L a s t C h a n g e . . . . . . . . . . : 0 2 / 1 0 / 1 1 1 4 : 1 2 : 2 4
G e n e r a t i o n s e v e r i t y l e v e l . . . : 1 0
C o m p i l e r o p t i o n s . . . . . . . . : * X R E F * G E N * N O S E C L V L * S H O W C P Y
* E X P D D S * E X T * N O S H O W S K P * N O S R C S T M T
* D E B U G I O * N O E V E N T F
D e b u g g i n g v i e w s . . . . . . . . : * S T M T
O u t p u t . . . . . . . . . . . . . : * P R I N T
O p t i m i z a t i o n l e v e l . . . . . . . : * N O N E
S o u r c e l i s t i n g i n d e n t a t i o n . . . : * N O N E
T y p e c o n v e r s i o n o p t i o n s . . . . : * N O N E
S o r t s e q u e n c e . . . . . . . . . : * H E X
L a n g u a g e i d e n t i f i e r . . . . . . : * J O B R U N
R e p l a c e m o d u l e . . . . . . . . . : * N O
A u t h o r i t y . . . . . . . . . . . : * L I B C R T A U T
T r u n c a t e n u m e r i c . . . . . . . . : * Y E S
F i x n u m e r i c . . . . . . . . . . : * N O N E
T a r g e t r e l e a s e . . . . . . . . . : * C U R R E N T
A l l o w n u l l v a l u e s . . . . . . . : * N O
B i n d i n g d i r e c t o r y . . . . . . . : * N O N E
D e f i n e c o n d i t i o n n a m e s . . . . . : * N O N E
E n a b l e p e r f o r m a n c e c o l l e c t i o n . : * P E P
P r o f i l i n g d a t a . . . . . . . . . : * N O C O L
L i c e n s e d I n t e r n a l C o d e o p t i o n s . :
G e n e r a t e p r o g r a m i n t e r f a c e . . . : * N O
I n c l u d e d i r e c t o r y . . . . . . . :
P r e p r o c e s s o r o p t i o n s . . . . . . : * N O N E
5 7 2 2 W D S V 5 R 4 M 0 0 6 0 2 1 0 R N I B M I L E R P G Q T E M P / T S T C O N T A C T I I M I A D E V 0 2 / 1 7 / 1 1 1 1 : 3 6 : 0 0 P a g e 2
L i n e <