Sage 100

 View Only
  • 1.  A way to gracefully terminate Sage tasks automatically

    Posted 04-01-2025 16:36

    Is there a way to gracefully terminate tasks automatically with Sage 100 Advanced without shutting down the Sage App Server. Client has a scheduled task that forcefully kills all pvxwin32 tasks each night and it seems to be making the Sage App Server unstable the next day. They are asking can we just close the user sessions somehow?



    ------------------------------
    Greg Stiles
    DSD Business Systems
    ------------------------------


  • 2.  RE: A way to gracefully terminate Sage tasks automatically

    Posted 04-01-2025 16:44
    Edited by Kevin Moyes 04-01-2025 16:47

    Maybe use a NET STOP servicename, then NET START servicename... in the scheduled task?

    Edit: example from a ScanForce scheduled task...



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 3.  RE: A way to gracefully terminate Sage tasks automatically

    Posted 04-01-2025 17:02

    It's not running as a service because they have so many users.

     

    Greg Stiles

    Sr. Consultant, Sage 100

    e:

    GregS@dsdinc.com

    p:

    800-627-9032 x 176

    w:

    www.dsdinc.com

     





  • 4.  RE: A way to gracefully terminate Sage tasks automatically

    Posted 04-01-2025 17:38

    This registry adjustment (option II) works well for that.

    https://us-kb.sage.com/portal/app/portlets/results/viewsolution.jsp?solutionid=222924550020344



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 5.  RE: A way to gracefully terminate Sage tasks automatically

    Posted 04-01-2025 17:54

    Isn't it always better to run from the desktop? Especially when you have 70+ users?



    ------------------------------
    Greg Stiles
    DSD Business Systems
    ------------------------------



  • 6.  RE: A way to gracefully terminate Sage tasks automatically

    Posted 04-01-2025 18:02

    If the only issue is heap memory, running as a service with the appropriate registry adjustment should be fine.  (We typically start as a service, and only flip to application mode if there are issues, then try the registry hack to get back to running as a service...).



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 7.  RE: A way to gracefully terminate Sage tasks automatically

    Posted 04-02-2025 10:49

    Got it. Thanks @Kevin Moyes



    ------------------------------
    Greg Stiles
    DSD Business Systems
    ------------------------------