Maximo Open Forum

 View Only
  • 1.  Automatic restart of servers on every week at particular time

    Posted 05-05-2023 07:13
    Edited by Deepa P 05-08-2023 06:42

    Hi,
    We do a server ( all jvms in websphere) restart on every monday at a particular time. Its an easy but a time consuming task. I was thinking if we could automate the process. 

    Can anyone suggest how do i proceed with this? I want the Maximo servers to get automatically re-started( first stopping the servers then restarting) at a particular time of the week? Any suggestions are welcomed.


    #EverythingMaximo
    #Integrations

    ------------------------------
    Deepa P
    ------------------------------



  • 2.  RE: Automatic restart of servers on every week at particular time

    Posted 05-08-2023 22:21

    you can configure windows 'Task schduler' to run the 'stop Server' and 'start Server' batch files.



    ------------------------------
    Sankar Ganesh V S
    DXC Technology
    ------------------------------



  • 3.  RE: Automatic restart of servers on every week at particular time

    Posted 05-09-2023 04:02

    Thanks,Sankar.
    I was wondering if Stopserver would stop the whole application server at once. Can i use it to stop individual jvms? Please share your insight 



    ------------------------------
    Deepa P
    ------------------------------



  • 4.  RE: Automatic restart of servers on every week at particular time

    Posted 05-09-2023 10:46
    Edited by David Shaw 05-09-2023 10:46

    You can use it to act against individual JVMs or Clusters.
    For a more complex scenario, you can use the wasadmin command to run a python file which can exceute multiple steps including identifying all JVMs in a cluster, determining their current state then giving them commands.
    I've had to do this to make the JVMs ripplestart on server restart as they were conflicting and WebSphere can't make a cluster ripplestart.



    ------------------------------
    David Shaw
    Peacocks Engineering Ltd
    ------------------------------



  • 5.  RE: Automatic restart of servers on every week at particular time

    Posted 05-10-2023 11:54

    I have a more basic question. Why?

    I have had some previous Maximo installations that had a memory leak caused sometimes by bad coding that essentially was bringing down these servers due to memory being all used.  I think you can guess that a restart fixed that.

    Today, it seems so old hat to have to stop/start the JVM's.  So, what's the underlying need to restart weekly?  Maybe there is something the brains trust can help with?



    ------------------------------
    Regards,
    Craig Kokay
    ISW
    Maximo Practice Manager
    eMail: ckokay@isw.net.au
    Phone: +61-411-682-040

    #IBMChampion2023
    ------------------------------



  • 6.  RE: Automatic restart of servers on every week at particular time

    Posted 05-11-2023 12:19
    Edited by mark robbins 05-11-2023 12:26

    @Craig Kokay asks an important question.
    If you are restarting the system because of performance problems then a better solution would be to resolve the underlying problems. Restarting a JVM typically offers a respite before the problems occur again.

    If you are seeing files with any of these names on the WebSphere server then you are likely to have serious memory leaks:
    core.<datestamp>
    heapdump.<datestamp>

    Typically these will be in the profile folder :
    IBM/WebSphere/AppServer/profiles/<profile name>/

    They are likely to be several GB in size.

    Analysing those isn't something that the brains trust will do for free but if they are present then we can suggest additional things.
    You haven't provided your version information so we can't tell if you are missing patches.
    There have been quite a few fixes for memory leaks over the past few years so if you are experiencing memory leaks then it is possible that applying the latest fix packs will help resolve those.

    Another alternative is having your JVM logs analysed. The JVM logs give a number of clues about the causes of performance problems and some of the people here, like me, analyse the logs in our day jobs.



    ------------------------------
    mark robbins
    Cohesive
    IBM Champion 2017-2023 Inclusive
    See my blog on Maximo support related topics here:
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------