Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How would you solve that?

How would you solve that?

Scheduled Pinned Locked Moved The Lounge
comsysadminperformancequestion
50 Posts 29 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Joan M

    Hello all, in our department we are using a software that works as a software repository (a kind of subversion) that is the only one that exists/works for the software that we are using. It seems that the service that runs on our server (the one that handles all the queries from our computers) leaks memory. Even if I stop the service it doesn't frees all the memory that it has occupied. I've tried to speak to the manufacturer of that software without result... My only guess is to set up a virtual machine in order to serve that service and make it to reset each day. Any other idea? this is like killing a fly using a thermonuclear bomb... :~ As always thank you in advance.

    [www.tamelectromecanica.com][www.tam.cat]

    P Offline
    P Offline
    patbob
    wrote on last edited by
    #41

    Yes, VM or hardware is the only way to solve a leak that even the OS can't reclaim upon process termination. Of cousre, it also means the OS has a bug, so I'd opt for a hardware solution, or at least a VM made by a different vendor. However.. why are you still using this product, anyway? If the product is really all that bad, and they are not planning to have a fix out for a year (don't forget, plans are always optimistic), aren't you staying with a product whose customer base is defecting? Is that really the horse you want to hitch your company's source code to? I've seen companies fold over such fiascos and wouldn't want to risk my company's source code to a company about to fold with such a serious flaw already in their software. Maybe that's just me though.

    patbob

    J 1 Reply Last reply
    0
    • T Todd Smith

      Go into the services manager and double-click on the services involved. Look at the top of the dialog for Service name:. Now create a batch file with the following:

      sc stop *service name goes here*
      sleep 30 ; give it some time to shut down
      sc start *service name goes here*

      Now go into control panel and Scheduled Taks > Add Scheduled Task We had to do this for a 3rd party app which kept dropping its database connection (probably during nightly backups) and wouldn't automatcially restore the connection. The only way to fix it was a restart. So we setup a scheduled task to start and stop the services during the night so all would be good in the morning when the service would acutally get used.

      Todd Smith

      T Offline
      T Offline
      Theodore M Seeber
      wrote on last edited by
      #42

      Likely wouldn't work in this situation- he's reporting that the service isn't deallocating memory on shutdown.

      1 Reply Last reply
      0
      • M magicfoot

        The Virtual server sounds good but just for argument's sake you could try to write a program that will allocate and then deallocate every single bit of available memory once the service has been stopped. Then restart the service. I would not put my hand in the fire for this method but it may be worth a try - any other non-reboot ideas ?

        D Offline
        D Offline
        Dan Neely
        wrote on last edited by
        #43

        bob2411 wrote:

        for argument's sake you could try to write a program that will allocate and then deallocate every single bit of available memory once the service has been stopped. Then restart the service.

        That's the "memory optimizer" X| snakeoil antipattern. All you accomplish is to flush all your system ram into the swapfile thus slowing all your applications down while the swap back in. You end up with 0 bytes more usable ram at the end.

        Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

        1 Reply Last reply
        0
        • P patbob

          Yes, VM or hardware is the only way to solve a leak that even the OS can't reclaim upon process termination. Of cousre, it also means the OS has a bug, so I'd opt for a hardware solution, or at least a VM made by a different vendor. However.. why are you still using this product, anyway? If the product is really all that bad, and they are not planning to have a fix out for a year (don't forget, plans are always optimistic), aren't you staying with a product whose customer base is defecting? Is that really the horse you want to hitch your company's source code to? I've seen companies fold over such fiascos and wouldn't want to risk my company's source code to a company about to fold with such a serious flaw already in their software. Maybe that's just me though.

          patbob

          J Offline
          J Offline
          Joan M
          wrote on last edited by
          #44

          patbob wrote:

          However.. why are you still using this product, anyway?

          It is more complicated... the software is created on the company A. That company develops the repository system also. The company B makes great improvements/extensions to the software made in the company A (they are resellers/partners) => those extensions are great for me. The company A has developed the 3rd version of the software. The company B needs more time to port all their extensions to the software. This is why I'm stuck with that... Anyway the software that I'm using is amazing and it allows me to do exactly what I need in my business (www.tamelectromecanica.com[^]). There are only a few companies in the world that make this kind of software and I think that I'm with the best one, at least this is what I believe... Thank you for your feedback anyway.

          [www.tamelectromecanica.com][www.tam.cat]

          P 1 Reply Last reply
          0
          • J Joan M

            Hello all, in our department we are using a software that works as a software repository (a kind of subversion) that is the only one that exists/works for the software that we are using. It seems that the service that runs on our server (the one that handles all the queries from our computers) leaks memory. Even if I stop the service it doesn't frees all the memory that it has occupied. I've tried to speak to the manufacturer of that software without result... My only guess is to set up a virtual machine in order to serve that service and make it to reset each day. Any other idea? this is like killing a fly using a thermonuclear bomb... :~ As always thank you in advance.

            [www.tamelectromecanica.com][www.tam.cat]

            C Offline
            C Offline
            cpkilekofp
            wrote on last edited by
            #45

            Joan Murt wrote:

            Any other idea? this is like killing a fly using a thermonuclear bomb...

            It's not a thermonuclear bomb, it's a honeypot, and as such is perfect for flies and other bugs.

            1 Reply Last reply
            0
            • J Joan M

              Hello all, in our department we are using a software that works as a software repository (a kind of subversion) that is the only one that exists/works for the software that we are using. It seems that the service that runs on our server (the one that handles all the queries from our computers) leaks memory. Even if I stop the service it doesn't frees all the memory that it has occupied. I've tried to speak to the manufacturer of that software without result... My only guess is to set up a virtual machine in order to serve that service and make it to reset each day. Any other idea? this is like killing a fly using a thermonuclear bomb... :~ As always thank you in advance.

              [www.tamelectromecanica.com][www.tam.cat]

              A Offline
              A Offline
              Arterion
              wrote on last edited by
              #46

              I vote the VM idea is the best. I wouldn't call it a significant issue, especially not equating it to a thermonuclear bomb. VM's are becoming so common that I think they'll eventually be considered "trivial". I run all sorts of things in VM's, server and workstation, and I love the technology. It's even to the point now that I won't run anything natively on a machine until I've first tested it in a virtual environment. Whether you have a dedicated, physical machine, or you're using a virtual one, you could setup a scheduled task of "shutdown -r" or what have you to make it restart at a convenient interval.

              1 Reply Last reply
              0
              • J Joan M

                patbob wrote:

                However.. why are you still using this product, anyway?

                It is more complicated... the software is created on the company A. That company develops the repository system also. The company B makes great improvements/extensions to the software made in the company A (they are resellers/partners) => those extensions are great for me. The company A has developed the 3rd version of the software. The company B needs more time to port all their extensions to the software. This is why I'm stuck with that... Anyway the software that I'm using is amazing and it allows me to do exactly what I need in my business (www.tamelectromecanica.com[^]). There are only a few companies in the world that make this kind of software and I think that I'm with the best one, at least this is what I believe... Thank you for your feedback anyway.

                [www.tamelectromecanica.com][www.tam.cat]

                P Offline
                P Offline
                patbob
                wrote on last edited by
                #47

                Thanks, makes sense now. When you find only one product that is a perfect solution for your needs, well.. sometimes you just have to put up with stuff :) Good luck with implementing the solution.

                patbob

                J 1 Reply Last reply
                0
                • J Joan M

                  Hello all, in our department we are using a software that works as a software repository (a kind of subversion) that is the only one that exists/works for the software that we are using. It seems that the service that runs on our server (the one that handles all the queries from our computers) leaks memory. Even if I stop the service it doesn't frees all the memory that it has occupied. I've tried to speak to the manufacturer of that software without result... My only guess is to set up a virtual machine in order to serve that service and make it to reset each day. Any other idea? this is like killing a fly using a thermonuclear bomb... :~ As always thank you in advance.

                  [www.tamelectromecanica.com][www.tam.cat]

                  N Offline
                  N Offline
                  nutkase
                  wrote on last edited by
                  #48

                  Joan Murt wrote:

                  It seems that the service that runs on our server (the one that handles all the queries from our computers) leaks memory. Even if I stop the service it doesn't frees all the memory that it has occupied.

                  Is it really possible? As i understand once the process dies. The memory is reclaimed by the OS!? Pardon me for the ignorance :) .. just enlightening myself :)

                  J 1 Reply Last reply
                  0
                  • N nutkase

                    Joan Murt wrote:

                    It seems that the service that runs on our server (the one that handles all the queries from our computers) leaks memory. Even if I stop the service it doesn't frees all the memory that it has occupied.

                    Is it really possible? As i understand once the process dies. The memory is reclaimed by the OS!? Pardon me for the ignorance :) .. just enlightening myself :)

                    J Offline
                    J Offline
                    Joan M
                    wrote on last edited by
                    #49

                    It should work that way... but for any reason it seems that not all the child processes die...

                    [www.tamelectromecanica.com][www.tam.cat]

                    1 Reply Last reply
                    0
                    • P patbob

                      Thanks, makes sense now. When you find only one product that is a perfect solution for your needs, well.. sometimes you just have to put up with stuff :) Good luck with implementing the solution.

                      patbob

                      J Offline
                      J Offline
                      Joan M
                      wrote on last edited by
                      #50

                      :sigh: Let's hope it will work for us... Thank you for your feedback.

                      [www.tamelectromecanica.com][www.tam.cat]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups