[ADMN/SEC/WEB] HawkEye [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by oliverw92, Aug 15, 2011.

  1. Offline

    oliverw92

    sethgandy, phimt, matan7890 and 7 others like this.
  2. Offline

    oliverw92

    For OSX, just use MAMP: http://www.mamp.info/en/index.html
    Or XAMPP: http://www.apachefriends.org/en/xampp.html
    VERY easy installation.

    I'll see what events are available for crafting. This would be in v1.1.0
     
  3. Offline

    Freakdk

    Yeah it actually stops working as soon as you log out.

    doing /he tool (twice to enable it) doesn't work :)
     
  4. Offline

    oliverw92

    You are on v1.0.3 still. That bug was fixed in v1.0.4
     
  5. Offline

    Mikor

    Are you attempting to use a MySQL database hosted on a separate server, by chance? Looks like your remote MySQL installation is not accepting outside connections, or connections from your MC server's host.

    On an unrelated note, this plugin sounds GREAT - unfortunately, our server rapidly runs out of memory when attempting to use this with PhoenixTerrainMod, so we had to switch back to LogBlock. I hope oliverw92 can continue to work on performance improvements, particularly with logging and registering new blocks in newly generated chunks. Please note that my personal issues between PTM and Hawkeye are not necessarily indicative with an issue with Hawkeye - just that PTM has to take priority for our server's needs.
     
  6. Offline

    Freakdk

    Oh wierd.. I just downloaded and installed it yesterday..
    Didn't notice a new version had come out :) - Thanks!
     
  7. Offline

    oliverw92

    I'm unsure how this would actually be affected by PTM at all. Can you try turning lava and water flow logging off and tell me if there are still issues?
     
  8. Offline

    Mikor

    Yeah sure. Best as we can tell, new chunk generation is what made HawkEye go slightly nuts and force out of memory errors (and understand - we came to this conclusion by removing HawkEye, rebooting, and watching the server not run out of memory anymore lol) - give us some time to re-setup HawkEye and give it another shot, with lava and water flow logging off - I ought to be able to have an answer for you by tonight (i'm in Eastern time)
     
  9. Offline

    oliverw92

    One theory as to why this could happen - in a lot of chunks water is found to be 'flowing' out of things (in caves, sides of mountains etc). I'm not sure, but the minecraft world generation might pre-calculate these flowing blocks so the in-game simulation doesn't have to take place. PTM could be doing it differently - it might just be putting the source block there and letting simulation take its course. This could theoretically lag out HawkEye if there are thousands of flow events happening all the time.
     
  10. Offline

    Mikor

    I'm willing to bet you that's precisely what the issue is - I do believe PTM only puts the source block in place. I'll let you know our results once we've ran the field test - thanks for the feedback! Love your web integration, anything that helps my staff do their jobs easier is a huge bonus for us!
     
  11. Offline

    oliverw92

    :) let me know how it goes!

    This could actually be the reason other people are ending up with memory issues - any chunk generator that just places the source block could easily cause memory issues
     
  12. Offline

    but2002

    @oliverw92 I think your theory may be correct too. We were running a custom PTM world and it was causing severe lag issues. We have plenty of Memory so we never ran out but there are times when we came EXTREMELY close. We did eventually change our PTM world to a much less intense version but it helps a lot. I'll go to a place with flowing water and see if HawkEye has records.

    In reference to my above post, it's confirmed. PTM does only create source blocks and let the 'simulation run out'
    Here's proof:

    [​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  13. Offline

    Freakdk

    @oliverw92

    Hey mate.
    I WAS on version 1.0.4 :/

    So whenever you log out - the tool doesn't work.
    And when you reload the plugin, it does once again.


    EDIT: And sometimes when you relog, it actually works again.

    EDIT2: Whenever you do /hawk tool - You will get a log-block - even though I changed it to a woodenpickaxe :)
     
  14. Offline

    MineJob

    I was just talking about stability. BigBrother is really good plugin and you know that yourself. HawkEye is also a really good tool but it still doesn't make BigBrother crap.

    Also. I only suggested people not to use it, or atleast not on my scale. I have about 90+ people on on average which I think might indeed be the case. I just hope that you can let someone check if theres any memory leaks or tell me why BigBrother is far Less I tensive to run (on a serverthat should be able to run your plugin).
     
  15. Offline

    oliverw92

    Do you use any custom generators? Try turning water-flow and lava-flow logging off.

    Right so now this is semi-confirmed, I don't actually think there is anything I can do to stop that lagging HawkEye out. I guess I could make lava and water flow logging turned off by default.

    Hm. I'm not sure what is going wrong then. I'll look into it some more.
     
  16. Offline

    Mikor

    This is probably the best course of action for the time being, unless there's some way to optimize performance of those two specific functions (would assigning water and lava flow logging to a separate process thread help? Note I have zero software development experience, our main programmer doesn't handle much of the community relations).
     
  17. Offline

    oliverw92

    The issue isn't processor usage (which threading would help). The issue is the sheer amount of flow entries that are being queued up. Unless I start dumping entries if the queue size is over a certain size, there isn't really anything I can do
     
  18. Offline

    but2002

    This actually seems like a logical course of action. If not start firing SQL events instantaneously store them in a text file so when the queue reaches a low point the plugin could then start firing off saved SQL events. Timestamps would be accurate, but not ID stamps, they'd be stored in the 'wrong order' so to speak. It would definitely help memory usage, I think.
     
  19. Offline

    oliverw92

    I believe LogBlock has some kind of similar system. Might take a look
     
  20. Offline

    martynball

    Hey, this plugin is simply amazing. I love how it can tell me who placed a block ect..

    It works perfectly too, although I don't understand how to use the rollback commands. I'm trying to use the command: /hawk preview <parameters>. But I don't know what I put in for the parameters?
     
  21. Offline

    Freakdk

    Alright - tell me if you need any additional information.
     
  22. Offline

    tehbeard

    Hi, liking the plugin, very smooth and nice output.
    We're having a problem with the web interface.
    The database config is setup correctly, but no results are returned from any search criteria. No errors, just a permament loading bar in the results area.
     
  23. Offline

    but2002

    @tehbeard Same server or different server?
     
  24. Offline

    tehbeard

    Vm server running on the minecraft server
     
  25. Offline

    but2002

    @tehbeard So you're running the minecraft server on the hardware, and a MySQL server in a virtual machine? Or two virtual machines on the same hardware?
     
  26. Offline

    tehbeard

    minecraft is running on the actual OS (ubuntu)
    Apache/mysql in a vm machine on this.
     
  27. Offline

    but2002

    @tehbeard Then I'm not exactly sure why results aren't being pushed through See if there's anything in your MySQL error log or Apache's
     
  28. Offline

    MasterMeNL

    (Temp) fix for superpickaxe logging:
    Just use this plugin (confirmed logging with HawkEye v1.0.4 RB#1060).
     
  29. Offline

    tehbeard

    Found this in the error logs
    [23-Aug-2011 13:18:46] PHP Notice: Undefined variable: lang in ******/hawkeye/interface.php on line 18
    [23-Aug-2011 13:18:46] PHP Fatal error: Call to undefined function json_encode() in ********/hawkeye/interface.php on line 241

    PHP 5.3.6

    Edit: got it working, patched the native php versions of json_encode/decode into the top of interface.php, anyway for you to integrate these in a later release?
     
  30. Offline

    MineJob

    I do wanna add that I really like the plugin and that it has a lot of potential and that it will take over BigBrother (which is now not offcialy continued).

    Also, as you suggested, I think turning water and lava logging off by default would be a good choice. This because you won't have people like me that report about high memory usage.
     
  31. Offline

    Massimo1993

    @oliverw92
    hi excuse me but when my server whas started for few time the hawk tool stop working 0.o
     

Share This Page