Re: Necessary To End Task After Quitting Server

2020-02-26 Thread Saeed via 4D_Tech
I had this problem in V16 with the "Encrypt Client Server Communications"
turned ON. This was leaving ghost connections on the server as well as
hanging it up. A bug related to the ghost connections was fixed in V17.4 and
the server hang-up-problem also disappeared.



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-26 Thread Tom Benedict via 4D_Tech
Chuck (and others),

Are you referring to the “Tasks Pending” Alert that appears at server shutdown 
or is it something else? If it’s the "Tasks Pending” Alert, here’s a post from 
Doug Cottrill from a 2014 which describes what to do about it. 
http://4d.1045681.n5.nabble.com/Tasks-pending-td5726940.html 


Tom Benedict

> On Feb 26, 2020, at 13:35, Chuck Miller via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I am not sure this is it.  we have had this type of error since v15. It is 
> never a process we have started and it does not appear anywhere on 4D’s list 
> of processes. When we see this message (Waiting for task to complete) we can 
> wait forever and 4D will NEVER quit
> 
> Regards
> 
> Chuck
> 
> 
>> On Feb 26, 2020, at 2:58 PM, Allan Udy via 4D_Tech <4d_tech@lists.4d.com> 
>> wrote:
>> 
>> Hi Tim,
>> 
>> 
>> Timothy Penner wrote on 27/02/20 6:34 AM:
>>> the very last line of code in the On Server Shutdown message is a logging 
>>> entry, which DOES get executed so we no it's not getting hung up on code in 
>>> there. Perhaps the application is releasing the memory?
>>> 
>>> Take a look at the Task Manager and watch the memory for the 4D Server.exe 
>>> process after you choose QUIT. Essentially the memory value of the process 
>>> decreases until it reaches 0 and then the application finally quits.
>> 
>> Many thanks for your explanation -- it makes some sense, we'll investigate.  
>> We're not far away from moving to v18  :-)
>> 
>> Cheers,
>> Allan Udy
**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-26 Thread Timothy Penner via 4D_Tech
Hi Chuck,

I believe you are referring to the "Tasks Pending" dialog: let me include a 
link to the forums with screenshots to provide additional context in case this 
is what you are referring to:
https://forums.4d.com/Post/EN/23029409/1/23029410#23029410

I didn’t get the impression that Allan was seeing this dialog... but maybe they 
just didn't notice the error message?

-Tim
**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-26 Thread Chuck Miller via 4D_Tech
I am not sure this is it.  we have had this type of error since v15. It is 
never a process we have started and it does not appear anywhere on 4D’s list of 
processes. When we see this message (Waiting for task to complete) we can wait 
forever and 4D will NEVER quit

Regards


Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Feb 26, 2020, at 2:58 PM, Allan Udy via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi Tim,
> 
> 
> Timothy Penner wrote on 27/02/20 6:34 AM:
>> the very last line of code in the On Server Shutdown message is a logging 
>> entry, which DOES get executed so we no it's not getting hung up on code in 
>> there. Perhaps the application is releasing the memory?
>> 
>> Take a look at the Task Manager and watch the memory for the 4D Server.exe 
>> process after you choose QUIT. Essentially the memory value of the process 
>> decreases until it reaches 0 and then the application finally quits.
> 
> Many thanks for your explanation -- it makes some sense, we'll investigate.  
> We're not far away from moving to v18  :-)
> 
> Cheers,
> Allan Udy

**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-26 Thread Allan Udy via 4D_Tech

Hi Tim,


Timothy Penner wrote on 27/02/20 6:34 AM:

the very last line of code in the On Server Shutdown message is a logging 
entry, which DOES get executed so we no it's not getting hung up on code in 
there. Perhaps the application is releasing the memory?

Take a look at the Task Manager and watch the memory for the 4D Server.exe 
process after you choose QUIT. Essentially the memory value of the process 
decreases until it reaches 0 and then the application finally quits.


Many thanks for your explanation -- it makes some sense, we'll 
investigate.  We're not far away from moving to v18  :-)


Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz

**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-26 Thread Tim Nevels via 4D_Tech
On Feb 26, 2020, at 11:04 AM, Stephen J. Orth wrote:

> We get this occasionally and the best I can attribute it to is that 4D is 
> waiting for something to stop before exiting.
> 
> Just make sure you don't have something hung up during the shutdown process.

Sometimes it take 4D v17.x a while to quit depending on how much memory the 
server is using. It can take minutes for it to quit as it tells the Windows OS 
to release tens of thousands of little blocks of memory.

What I do when 4D Server is taking a long time to quit is open the Task Manager 
and watch memory usage of 4D Server. If it is slowly going down, I just wait it 
out and it will usually finally quit. If I see memory usage not changing for 
many minutes, then it’s time to force quit. Like Steve said, sometimes it is 
waiting for a process or something to finish that never does.

Tim

*
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*

**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-26 Thread Timothy Penner via 4D_Tech
Hi Allan,

> the very last line of code in the On Server Shutdown message is a logging 
> entry, which DOES get executed so we no it's not getting hung up on code in 
> there.

Perhaps the application is releasing the memory? 

Take a look at the Task Manager and watch the memory for the 4D Server.exe 
process after you choose QUIT. Essentially the memory value of the process 
decreases until it reaches 0 and then the application finally quits. The 
release of memory was sometimes slower in large application with very large 
cache sizes running with some of the v17.x-v17R releases.

Good news, with optimizations in v18 this process of quitting seems to be about 
10x times faster - 

For example:
- With a cache having 28GB of data
- With 4D 17 R5 Time to quit : 3m 20s
- With 4D v18 and the new optimization. Time to quit :  16 seconds.

If this is what you are seeing I would suggest either waiting until the process 
completes on its own or upgrading to v18 to get the optimization, bottom line 
is to avoid using the "End Task" feature if at all possible.

-Tim
**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-25 Thread Allan Udy via 4D_Tech

Hi Stephen,

Stephen J. Orth wrote on 26/02/20 10:00 AM:

We get this occasionally and the best I can attribute it to is that 4D is 
waiting for something to stop before exiting. Just make sure you don't have 
something hung up during the shutdown process.


Thanks.  Have been trying to do so but it appears that the only 
processes still running are internal database engine ones, and the very 
last line of code in the On Server Shutdown message is a logging entry, 
which DOES get executed so we no it's not getting hung up on code in there.


Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz

**
4D Internet Users Group (4D iNUG)
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: Necessary To End Task After Quitting Server

2020-02-25 Thread Stephen J. Orth via 4D_Tech
Allan,

We get this occasionally and the best I can attribute it to is that 4D is 
waiting for something to stop before exiting.

Just make sure you don't have something hung up during the shutdown process.


Steve

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Allan Udy via 4D_Tech
Sent: Tuesday, February 25, 2020 2:37 PM
To: 4d_tech@lists.4d.com
Cc: Allan Udy 
Subject: Necessary To End Task After Quitting Server

Hi all,

We've run into an issue where on a deployed server application, when using the 
File > Quit menu item, the server effectively hangs and does not actually quit 
(even when all Clients have disconnected), and the DBA has to use the Windows 
Task Manager to actually force quit the application.

This has happened on both Windows Server 2012 and 2019, in all flavors of v17RX 
(and possible earlier).

Currently on the live server (Windows Server 2019) it happens all the time.

On the DBA's test server machine it wasn't happening, but now it is.

On our Windows Server 2019 test machine in our office it doesn't happen at all 
-- the application quits as one would expect.

Has anyone seen anything like this?

Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand 
http://www.golden.co.nz<http://www.golden.co.nz>

**
4D Internet Users Group (4D iNUG)
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)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Necessary To End Task After Quitting Server

2020-02-25 Thread Allan Udy via 4D_Tech

Hi all,

We've run into an issue where on a deployed server application, when 
using the File > Quit menu item, the server effectively hangs and does 
not actually quit (even when all Clients have disconnected), and the DBA 
has to use the Windows Task Manager to actually force quit the application.


This has happened on both Windows Server 2012 and 2019, in all flavors 
of v17RX (and possible earlier).


Currently on the live server (Windows Server 2019) it happens all the time.

On the DBA's test server machine it wasn't happening, but now it is.

On our Windows Server 2019 test machine in our office it doesn't happen 
at all -- the application quits as one would expect.


Has anyone seen anything like this?

Cheers,
Allan Udy

Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz

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