Results 1 to 4 of 4
  1. #1
    VernK's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    47
    My Mood
    Relaxed

    Killing a process going over memory usage

    Hey ,

    I have a minecraft server and we have been making an auto-restarter when it crashes

    So basically if java.exe goes over 300,000MB of memory usage then it will kill the process

    Also if someone could help if it is possible to read a Read time out error through a visual basic program off a console

    Thanks!
    Vern
    I am Here to Program!
    __________________________________________________
    Open Source Project: [Advanced IP Tool][Released]
    Open Source Project: [Advanced IP Tracker][Released]
    Download the project here! - IP Tool v1.5 By VernK - Full Source
    __________________________________________________
    Visual Basic: 67%
    Visual C#: 23%
    Visual Web Dev: 10%
    Visual C++: 5%


    Feel free to ask me any questions or get help:
    Skype: veeran.kerai. rocks (Active) <remove space>
    AIM: veerank12@aol.com
    YAHOO: veerank12@yahoo.com
    MSN: veerank12@live.com (Very Active)
    GMAIL: movemanb@gmail.com
    E-MAILS: veerank12@mail.com
    veerank12@gm*****m
    Or PM Me on MPGH!

  2. #2
    Sync's Avatar
    Join Date
    Jul 2011
    Gender
    female
    Location
    Bat Gang
    Posts
    1,977
    Reputation
    239
    Thanks
    208
    My Mood
    Yeehaw
    Why would u want to kill it?
    Type "stop" in the command box and restart?

    @VernK

  3. #3
    VernK's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    47
    My Mood
    Relaxed
    No, when you have a read time out in a minecraft server You can't do anything
    I am Here to Program!
    __________________________________________________
    Open Source Project: [Advanced IP Tool][Released]
    Open Source Project: [Advanced IP Tracker][Released]
    Download the project here! - IP Tool v1.5 By VernK - Full Source
    __________________________________________________
    Visual Basic: 67%
    Visual C#: 23%
    Visual Web Dev: 10%
    Visual C++: 5%


    Feel free to ask me any questions or get help:
    Skype: veeran.kerai. rocks (Active) <remove space>
    AIM: veerank12@aol.com
    YAHOO: veerank12@yahoo.com
    MSN: veerank12@live.com (Very Active)
    GMAIL: movemanb@gmail.com
    E-MAILS: veerank12@mail.com
    veerank12@gm*****m
    Or PM Me on MPGH!

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,680
    My Mood
    Breezy
    Wait what? 300GB of RAM? Are you sure? I think you mean 300,000KB.

    [highlight=vb.net]'Put this in a timer or something
    Dim pJavaArray() As Process = Process.GetProcessesByName("java")
    If pJavaArray.Length > 0 AndAlso pJavaArray(0).WorkingSet64 >= (300 * 1024 * 1024) Then
    pJavaArray(0).Kill()
    'Add code here to restart the server
    End If[/highlight]
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

Similar Threads

  1. [Help] Killing a process
    By Lyoto Machida in forum Visual Basic Programming
    Replies: 14
    Last Post: 03-10-2011, 09:13 PM
  2. How to kill a process?
    By ac1d_buRn in forum Visual Basic Programming
    Replies: 16
    Last Post: 11-27-2009, 08:20 AM
  3. Can't kill Avira Processes?
    By Th3KaNgSt3R in forum Suggestions, Requests & General Help
    Replies: 2
    Last Post: 09-17-2009, 06:42 PM
  4. MPGH going over board?
    By irindean in forum Flaming & Rage
    Replies: 11
    Last Post: 01-08-2009, 04:38 PM
  5. [Release] CPU and Memory Usage Increaser
    By secutos in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 08-20-2008, 07:59 PM