RE: Losing memory on 4D web application

2018-06-11 Thread Olson, Brad via 4D_Tech
Hi Dani,
I am not using the Object Tools plug-in.  The only plug-in I am using is 4D 
InternetCommands

Thank you,
Brad



-Original Message-
From: Dani Beaubien [mailto:dbeaub...@openroaddevelopment.com] 
Sent: Friday, June 08, 2018 2:35 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Olson, Brad 
Subject: Re: Losing memory on 4D web application

Email Security Warning:

The following message was sent from an external e-mail address. Exercise 
caution when opening attachments, clicking links, or exchanging information.

Hi Brad,

Are you using ObjectTools? We have a similar setup and we were leaking 
mysteriously.  I did a bunch of research and I landed on that ObjectTools was 
the issue. I switched everything away to C_OBJECTS (no other changes) and the 
memory issues went away.

ObjectTools is pretty heavily used plugin so I as surprised. It might have to 
do with it running in a web process. Not sure. Regardless, my problem was 
solved by going to C_OBJECTs.

Dani


> On Jun 8, 2018, at 11:50 AM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have a large 4D web intranet application that, over the course of a week, 
> runs out of memory.  It is running 4D Server 16R4 on Windows Server 2012, 
> with 16GB RAM, and no other applications are running on it.  This application 
> does a lot of calls to a middleware server that returns large quantities of 
> data in XML format.  The returned data is parsed using the XML DOM commands, 
> but in each case I am calling the DOM CLOSE XML command.
> 
> I have checked that all blobs are being resized to 0, and I have included at 
> the bottom of each web page a wrapper that clears variables and reduces all 
> table selections to 0.  
> 
> jQuery ajax calls are used extensively in the web pages.  The resulting data 
> from these ajax calls is passed back from 4D in html files that use 4D tags 
> and formats the data into JSON format.  At the bottom of each of these files 
> I have also put the Clear Variables and Reduce Selection wrappers.
> 
> What am I missing?  Are there any tools or logs that will tell which methods 
> are not releasing memory?  What else should I be checking?
> 
> Thank you for any assistance,
> 
> Brad 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  
> http://secure-web.cisco.com/1e7adGti34aX6bA3Zcd9eLpO9GXMcygzKRbLIod9ThKyqMQujtdtdPiysw_1bOr7ICbkcRgMeCDxEkGtZeJWqRSY_Wzerm0W3_J9D8agrymJSm5O2PsJUemF8onBMmWzllhM4COmwdd8YUj3Jq0TceB4Xef1SvglYBzWDY2lJCicmrNtM8N3sIvVL0SrlC-wADokcqh1AkCYRfV-1FzM-EqkMdZfJsRNnf-5GQtMtvLimKT9GVXMwJUJrbHT82l-Fvkva3TZiFqi5eSZRs_UyU_Oqq0AUq-XfQdvav6O7hl1L5D0WnTNhoj5wDqqrhRGE/http%3A%2F%2Flists.4d.com%2Ffaqnug.html
> Archive:  
> http://secure-web.cisco.com/1vktuvllCJE-eyOTvrhuJBGudyeVnOwonltWre91H6VI2FwYTo4yny4UaXY73PQWdkbtlN2SpbIxwOkATlHFHyAkLrzqt1ZUCam_cChlLu4ueHJTK79nV8mHOGK0s5YU9HExIDj2CT8Sc0Z6X01L26dKtdt3u9zHngXY7bZgwFsI2MCxIBnNXc-eq5ctEJx5VKp_r_34aupJMXdgKi3AGjE3UbnS1eeigz0WK_kuHiennWS6mKNG4fWT8FlcfO0yK6iBkJTxtH3pXSArnUHOvrc6MqRfl7rVG-5c9lrHY11bpLICcnaJjD2WrhGdQDUb-/http%3A%2F%2Flists.4d.com%2Farchives.html
> Options: 
> https://secure-web.cisco.com/1iIkS9EgAFppCHkuk7gnQ-KV4Xgy0UQ-JHJKH7Jsw-AqcSKxPq_sGCgNf1vDkZk3xFvGReLiYl9BrOmGd10B4VLSnZ48ZTOg_Au57QDjLGcSpiQLZMBClgg_WxkOaDjt5zDvXxuLPg0ofPREJpSbQcPX50xi_C-m_JM5XPOjSNwLvHLZsiOi_RLKdLRFn5_8eNGyj3zDorZHWghm6FdfLV1_FcqC8K9tPbsfCH4AfOT0045cQFqfHQDUKiS5Uspn8jZzjLRoTYVo9J1IYoFm2co9lQNorbkhr5tR4Vck5UxwTDhFZ_4HT-juuWbbTw-BU/https%3A%2F%2Flists.4d.com%2Fmailman%2Foptions%2F4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Losing memory on 4D web application

2018-06-10 Thread Jody Bevan via 4D_Tech
Aparajita:

We loved ObjectTools at Jonoke for well over a decade. We could not have done 
what we did without it. It was fantastic. Thanks for ObjectTools over all those 
years. We never had a memory leak from it while we used it. It is great having 
plug-in developers creating tools for us, while 4D concentrates its development 
efforts on other things. As developers we win.

Yes, we now use 4D Objects. Adam wrote our own dot notation tool. Yes, we will 
likely discard that to the use of 4D’s in the next year, but again it is 
getting the job done, while 4D was getting other things done in 4D.

Jody

> On Jun 9, 2018, at 12:56 PM, Aparajita Fishman via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
>> Are you using ObjectTools? We have a similar setup and we were leaking 
>> mysteriously.  I did a bunch of research and I landed on that ObjectTools 
>> was the issue.
>> I switched everything away to C_OBJECTS (no other changes) and the memory 
>> issues went away.
> 
> For the record, ObjectTools itself might be not leaking, rather there might 
> have been places in your code where you didn’t clear an object when finished 
> with it.
> 
> Having said that, using C_OBJECT is of course preferable because you never 
> have to worry about memory leaks. I wrote ObjectTools in 1991. It only took 
> 4D 25 years to implement the equivalent.  :-)
> 
> - Aparajita

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Losing memory on 4D web application

2018-06-09 Thread Jörg Knebel via 4D_Tech

> On 10 Jun 2018, at 04:56 AEST, Aparajita Fishman via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> I wrote ObjectTools in 1991. It only took 4D 25 years to implement the 
> equivalent.  :-)

I hope you continue developing it even if there is something 4D did.

Cheers
Jörg
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Losing memory on 4D web application

2018-06-09 Thread Aparajita Fishman via 4D_Tech
> Are you using ObjectTools? We have a similar setup and we were leaking 
> mysteriously.  I did a bunch of research and I landed on that ObjectTools was 
> the issue.
> I switched everything away to C_OBJECTS (no other changes) and the memory 
> issues went away.

For the record, ObjectTools itself might be not leaking, rather there might 
have been places in your code where you didn’t clear an object when finished 
with it.

Having said that, using C_OBJECT is of course preferable because you never have 
to worry about memory leaks. I wrote ObjectTools in 1991. It only took 4D 25 
years to implement the equivalent.  :-)

- Aparajita
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Losing memory on 4D web application

2018-06-08 Thread Dani Beaubien via 4D_Tech
Hi Brad,

Are you using ObjectTools? We have a similar setup and we were leaking 
mysteriously.  I did a bunch of research and I landed on that ObjectTools was 
the issue. I switched everything away to C_OBJECTS (no other changes) and the 
memory issues went away.

ObjectTools is pretty heavily used plugin so I as surprised. It might have to 
do with it running in a web process. Not sure. Regardless, my problem was 
solved by going to C_OBJECTs.

Dani


> On Jun 8, 2018, at 11:50 AM, Olson, Brad via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I have a large 4D web intranet application that, over the course of a week, 
> runs out of memory.  It is running 4D Server 16R4 on Windows Server 2012, 
> with 16GB RAM, and no other applications are running on it.  This application 
> does a lot of calls to a middleware server that returns large quantities of 
> data in XML format.  The returned data is parsed using the XML DOM commands, 
> but in each case I am calling the DOM CLOSE XML command.
> 
> I have checked that all blobs are being resized to 0, and I have included at 
> the bottom of each web page a wrapper that clears variables and reduces all 
> table selections to 0.  
> 
> jQuery ajax calls are used extensively in the web pages.  The resulting data 
> from these ajax calls is passed back from 4D in html files that use 4D tags 
> and formats the data into JSON format.  At the bottom of each of these files 
> I have also put the Clear Variables and Reduce Selection wrappers.
> 
> What am I missing?  Are there any tools or logs that will tell which methods 
> are not releasing memory?  What else should I be checking?
> 
> Thank you for any assistance,
> 
> Brad 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Losing memory on 4D web application

2018-06-08 Thread Olson, Brad via 4D_Tech
I have a large 4D web intranet application that, over the course of a week, 
runs out of memory.  It is running 4D Server 16R4 on Windows Server 2012, with 
16GB RAM, and no other applications are running on it.  This application does a 
lot of calls to a middleware server that returns large quantities of data in 
XML format.  The returned data is parsed using the XML DOM commands, but in 
each case I am calling the DOM CLOSE XML command.

I have checked that all blobs are being resized to 0, and I have included at 
the bottom of each web page a wrapper that clears variables and reduces all 
table selections to 0.  

jQuery ajax calls are used extensively in the web pages.  The resulting data 
from these ajax calls is passed back from 4D in html files that use 4D tags and 
formats the data into JSON format.  At the bottom of each of these files I have 
also put the Clear Variables and Reduce Selection wrappers.

What am I missing?  Are there any tools or logs that will tell which methods 
are not releasing memory?  What else should I be checking?

Thank you for any assistance,

Brad 
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**