Page 1 of 1

ServerModule - Response size

Posted: Mon Aug 14, 2017 2:21 pm
by soa
I have a server module call that returns a list of users; names, date-of-birth etcetera and their photos as blobs. I recently had one call fail but no fail event was raised - it simply hung. I traced into the servermodule and there was no error. Chrome Network trace showed that a 'vlweb error- internal failure' occurred. I don't have the exact words. Further troubleshooting revealed that the issue was one user who's photo, rather than being the expected 100K was 4 megs. Resizing this user's image fixed the problem.

My question is, although the image was not as it should have been 4 meg doesn't seem excessively large and I'm surprised that a blob of this size should prove fatal to a ServerModule. Is there a size limit?

Re: ServerModule - Response size

Posted: Tue Aug 15, 2017 3:20 pm
by Stewart Marshall
Hi Jim

There's no code in VL that explicitly limits response sizes and no reason that we know that a 4Mb object would cause an issue on its own.

The tech guys tell me that there is a potential limit on the size of a piece of memory of 16M on IBM i, which occurs if you're not using teraspace.

How big was the response object?

Regards

Re: ServerModule - Response size

Posted: Tue Aug 15, 2017 4:20 pm
by soa
Looking back at the photo in question I see that it was 6.56 meg.

I can't how tell how big the response object is as it crashes on the iSeries and the Chrome Network shows only 'vlweb - unknown error..' as the return code. It seems that it is crashing while building a response object.

I know that a 'normal' user photo would be around 40k and the response object wouldn't be much larger. The uuencoding apparently makes the image about 35% bigger so I image with the user in question the response object would be around 10 meg.

Re: ServerModule - Response size

Posted: Tue Aug 15, 2017 4:34 pm
by Stewart Marshall
Hi Jim

Crashing on the server is definitely a bad thing. Hopefully there will be a joblog.

Can you please report this to support team

Regards

Re: ServerModule - Response size

Posted: Tue Aug 15, 2017 5:33 pm
by soa
Ok, I'll build a test case.

Re: ServerModule - Response size

Posted: Wed Aug 23, 2017 3:30 pm
by Stewart Marshall
Hi Jim

We found an issue while tinkering with this. Hopefully the fix coming in SP2 will resolve your issues.



Regards

Re: ServerModule - Response size

Posted: Thu Aug 24, 2017 8:32 am
by soa
Great to hear Stewart. (SP2 is looking to be epic - can't wait!)