BuildCraft|Core

BuildCraft|Core

7M Downloads

Used memory spazzing out

jakemobile34 opened this issue ยท 29 comments

commented

so.... randomly when i play my memory likes to jump through % like milliseconds on a watch.... it doesnt do this on vanilla minecraft. and I currently have the latest forge and buildcraft for 1.7.10
I would post a video of it spazzing out but idk to do that... so ive got four screenshots of me standing in the same spot taken with 5 seconds. it was doing this in the previous buildcraft update too.
2015-03-30_13 11 25
2015-03-30_13 11 28
2015-03-30_13 11 15
2015-03-30_13 11 20

commented

btw... those screenshots were taken when i had mcpatcher on. but it does it when dont use mcpatcher

commented

So... Memory leak! With fillers/builders, no less!

...These things really need a rewrite. I give up.

commented

@asiekierka it is not memory leak. It is just normal memory usage with Forge and mods. Garbage in memory builds up and then Java decides to do minor garbage collection. It totally normal and until Java does not run out of memory there is nothing to worry for.

P.S. And depending on environment (mobs, fire, redstone) it will happen on vanilla. Filler is hundreds of pistons (block updates).

commented

but when this happens nothing works. the filler doesnt do anything, the builders stop. even the pipes dont even do anything

commented

its one filler with like maybe 10 creative pistons attached to it

commented

"creative pistons"

As I said, I can't reproduce any of the filler issues and people just come to us and shout at us to fix them, when we don't even know what is wrong.

commented

is there any other information i can provide?

commented

i can close the world and open it up and its still there. i cant shut down minecraft and then go back in and its still there. i can restart my computer and its still there. i can wait with my computer off for a few days and comeback and its still doing it. i pretty much have to play and ride it out

commented

JMX/VisualVM CPU sampler snapshot would be useful. It is the only way we can localize the bottleneck.

commented

thats the alternate F3 right?

commented

2015-03-31_01 52 50
2015-03-31_01 53 06

commented

It is not. It is tool in JavaDevelopmentKit. You run it, select MC instance ( it might be named "launchwrapper"something) select Sampler tab, click CPU button after you have joined lagging world, wait a minute or so, click Snapshot, select Snapshot tab, save it and upload. It is bit complicated but it is the only way to debug it.

commented

untitled

commented

took me forever to figure out how to do that lol

commented

Good. You've done one step. Now select sampler tab, click CPU button... Just read my previous comment once more. If you send us correct snapshot (not screenshot) we will know which function causes lag.

commented

found the snapshot. but i cant upload it

commented
commented

this one? im sorry. not as techie as i want to be yet
1

untitled2

commented

Or email it to me. asiekierka at gmail dot com

commented

You also want to make a memory snapshot if you dont have any lag? As your issue is memory not CPU

commented

It is called Heap Dump but memory is not the case. IMHO it is normal JVM operation with completely lagged out Main Thread.

commented

well i sent the snapshot to asiekierka. i can send it to you or post it through rghost or something kubuxu

commented

Asie will send it to me if he needs help.

commented

I didn't get it.?

commented

i sent it to asiekierka at gmail com

commented

Strange.

commented

spam folder maybe?

commented

send me an email and ill reply back, jakemobile34 at gmail com

commented

so..... whats that mean