Applied Energistics 2

Applied Energistics 2

137M Downloads

AutoCrafting lags

ArcasCZ opened this issue ยท 26 comments

commented

When someone try to craft hard recipe, server TPS goes down and tick time goes from 30 ms to 120 ms. What should we do with this?

commented

Please read the guidelines on how to profile and return when completed

commented

We aren't able to use VisualVM. We don't know why, but even with help of my friend, which is really experienced in server hosting, we were not able to profile.

Anyway - Opis wasn't able to show us, which chunk or block does lags, but when our friend started autocrafting, tick time went to horrible numbers.

So, we aren't able to provide more info. But if there is someone who can help us or meet with us at TeamSpeak, we have no problem :-) We wan't to improve this awesome mod and make it better ;)

commented

@ArcasCZ you could use other tools, there a lot of them. Some dont need to do anything, just run server normally and they will profile it.

Also, you could forget to change default host binding. There is mistace in each guidlines - they arent updated to latest version. Example of server args. so it will work perfectly with VisualVM remote:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=FREE_PORT -Djava.rmi.server.hostname=SERVER_IP

WARNING: THIS ISNT SECURE! YOU MUST BLOCK THAT PORT WITH IPTABLES OR USE IT ONLY FOR A FEW MINUTES.

Also, you need actually to not profile server, but actually sample it ( there is bug that will crash server with visual vm and remote profiling - it will go into infinite loop for some reason ... )
This is a litle bit off-topic, but this will help ;)

Or you could use SSH port forwarding, this is another solution. Same as before, but you would need to bind to localhost and use SSH port forwarding - its one of safest ways to do this

commented

There is problem - we couldn't run VisualVM - we tried to make it working about 3 hours with no reason...

commented

Which AE2 and Forge version are you using?

commented

AE2 latest, Forge 1614.

commented

You could look here for some advice: www.ae-mod.info/profiling.

commented

image

Here are images when we run huge autocraft.

image

You can guess when we turned crafting on...

commented

image

This img shows when AutoCrafting on (also, Baubles was saving to file, but that's just unfortunate coincidence).

image
And here without AutoCrafting.

commented

@XFactHD Jesus Christ, can you read?! We use Ubuntu, so this tutorial is pretty useless. Also, for some reason we can't run remote profiler - we tried to make it working about 3 hours a with no result. We tried lot of tutorials, we invited my friend (which is pretty good, he had lot of MC servers) - without any usefull result. I had an idea about Opis and Event profiling, but first I have to try it.

commented

Have you completely read the complete tutorial before yelling at me? Also, you should check your posts before yelling at me because you never mentioned that you are using a Ubuntu server. Back to the tutorial: It mentions another tick profiler mod you could try. I would have put the link to the mod here but the browser on my phone is too dumb to copy something from the URL box to any other text field.

commented

We need an actual visualvm snapshot (or comparable). Opis is pretty much useless for these cases.

Once you can provide one, we will reopen the issue.

commented

@yueh Come to our TeamSpeak and through TeamViewer try to run jVisualVM on our server. If you'll do it - you are god. There's no way to do it on our server ;)

commented

Little hint: Build the server on your local pc and try running jvisualvm.

commented

@XFactHD Problem is I can't run whole server on my PC - map's about 10 GB large!

commented

How many players have been playing on this map and how long does it exist? Although I do not doubt this being possible, it seems kinda weird.

commented

You can never know...

commented

@XFactHD We pre-render whole map.

commented

Can you do the map pre-render on your local pc? If you can, please compare how auto crafting performs on the fresh pre-rendered map vs a fresh and not pre-rendered map.

commented

@XFactHD Fact map is pre-rendered is irelevant. It's only about downloading 10 GB from server...

commented

@XFactHD I really can know - I'm doing MC servers about 3 years.

EDIT: Anyway - I'll try to run Warmroast for profilling.

commented

Here are WarmRoast results.

Desktop.tar.gz

commented

"I really can know - I'm doing MC servers about 3 years."
And I can safely make assumptions and doubts because I am working with Minecraft's code for over a year and I know that it is sometimes acting really weird.

commented

@XFactHD Yes, I know - but pre-generated world has nothink to do with AE2 auto crafting.

commented

Looks a bit weird because most of the time is spent in java.lang.Thread.sleep() and not in MC itself...
Everything else looks quite normal to me but I could be totally wrong right there. As soon as I have time to do so, I will make a WarmRoast on one of my single player worlds to have a comparison.

commented

What about that WarmRoast?