Server Crashing

Discussion in 'Plugin Development' started by x0pk1n, Jul 22, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    x0pk1n

    If my server crashes without reason, when using my plugin i've written and just says can't keep up, with no recent stack trace errors. How can i find out what causes it?

    Thanks!

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  2. Offline

    Tirelessly

    Wrong section, don't bump so quickly, yada yada yada
     
  3. Offline

    x0pk1n

    Tirelessly How is it the wrong section, i'm developing a plugin and it keeps crashing when i use my plugin. Admittedly i didn't mention that but...
     
  4. Offline

    microgeek

    You're not allocating adequate resources to the server.
     
  5. Offline

    1Rogue

    Is your plugin open source? If your server crashes, then there is almost definitely some form of stack trace or error. Check your server.log for details as well after a crash.
     
  6. Offline

    x0pk1n

    microgeek It's got like 4 or 8gb, only has a problem when using my plugin; which has worked fine till now.

    1Rogue server just ceases to respond, get the can't keep up responce then it stops. Nope nothing in the log file.
     
  7. Offline

    microgeek

    Either your plugin is has a memory leak, or it just uses a lot of memory.
     
  8. Offline

    Tirelessly

    Post the source and the steps it takes to replicate the problem.
     
  9. Offline

    x0pk1n

    Tirelessly What site would you recommend to post it on? seeing it has multiple classes it would be confusing to show here.
     
  10. Offline

    1Rogue

    Upload different classes using http://pastie.org/
     
  11. Offline

    x0pk1n

    1Rogue Tirelessly microgeek

    Basically from start up of the server it has problems, increased CPU usage etc. I've tried dif craftbukkits etc. Someone about my recent update has f@cked it up.

    After you use the command /ac <message> twice, it crashes.

    AdminChannel 1.6 -- http://pastie.org/private/x19lrga6gp5fusoc3fg4w

    PS: Your going to see me talk to myself in my code, don't judge me. Also some code will be inefficient etc yeah but I'm not a great programmer. I had a better method, but i removed it and went back to this thinking it was crashing it somehow.
     
  12. Offline

    Pawnguy7

    Wow. That is big. Can you narrow it down at all? Like, the part you say you changed recently.

    Anyway, it seems you are making some sort of staff chat or so. It shouldn't really lag, so something is wrong. Also, how do you define crash? No exceptions? Freezes up?
     
  13. Offline

    x0pk1n

    Pawnguy7 Okay here is a pastie of all the my classes: http://pastie.org/8170424

    Yes it is, it was meant to be an update for my plugin[http://dev.bukkit.org/bukkit-plugins/adminchatboxxy/] To fix some bugs etc.

    I would define a crash as all players loss response after I do /ac <message> twice and can't reconnect. While when the plugin is installed the CPU and RAM usage is increased from normal from the very start and it will maintain it's high % in use. It uses almost 200% more of my CPU power. I honestly have no idea why, my other versions of my plugin have never had anything like this.
     
  14. Offline

    Pawnguy7

    Hard to say. Anyway, can you use a Bukkit.broadcast("message", "YourPlugin.permission") here? You seem to have some pretty elaborate setup to broadcast, which might be your problem.
     
  15. Offline

    x0pk1n

    Pawnguy7 Like I said it works in 1.3 > 1.41 of my plugin, same method etc. The reason it is rather elaborated is because, I don't think Bukkit.broadcast("message", "YourPlugin.permission") works with permission managers, is that not true?
     
  16. Offline

    Pawnguy7

    I don't know how permissions handlers work internally, but it was my understanding that calls, such as getPermission (on players), would be handled by whatever permissions plugins you have - hooking into it, sort of.

    So, I would assume it would work, but you would have to test.

    Anyway, if that part didn't change, I don't know. You would just need to find the part you changed.
     
  17. Offline

    x0pk1n

    I just downloaded 1.41 to test, and although there is a message of system can't keep up for some reason upon logins there is no crash. I'm now going to go test those ways I though didn't work.

    Pawnguy7 Yes you were right! Guess it's time to go rewrite a lot, haha. I'll try and neaten up the code as well.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
Thread Status:
Not open for further replies.

Share This Page