Show newer

@Amikke

Java has several GC options that wont stop the world and ones that are super low latency as well as ones that are time constant (takes the same time to freeup a 100 TB heap as it does a 1KB heap)..

It is quite extrodinary how performant the Java GC is, out of all the memory managed languages it is probably the most efficient, if you know how to use it.

@icedquinn

@icedquinn do you have real world java code and some sort of diagnostic showing your GC problem? I can probably help you fix it if so. If you are already calling System.GC() as you wanted (though probably dont need to) then your issue is likely either in your choice of GC algorithm or its configuration.

@icedquinn

Did you read what I said... as I said you can do that... you just have no need to stop and restart the health check. Though you can if you really want to for some reason.

System.gc(), call it when you have downtime, you now just accomplished what you wanted.

@icedquinn

Nah, usually the problem is the coders are just clueless as to how to properly work with the GC. Its very common to have shitty coders when it comes to performance issues.

@verita84

@verita84

I have heard that claim many times... every single time when I investigated it wasnt true and came down to user error (or a lack of understanding in the mechanics of the GC)... Probably 200 times in my career as the guy consultant people call in to fix other peoples mess.

Pbviously in your case I cant say much more without seeing the code or knowing more of the problem... but not once has the GC ever actually turned out to be the problem in the end.

@icedquinn

@icedquinn

Java lets you do that.

System.gc()

If you call that it prioritized the GC, except you dont need to stop. you can keep running and the GC will clean up the 8gb heap without needing to stop your program at all (though you are welcome to stop if you have nothign to do and speed up the GC a bit I guess).

@icedquinn If you are worried about momentary latency at moments when latency is super critical then use the Java Real-time specification, JSR1

@icedquinn If you use C and traditional malloc and free calls to allocate memory as needed on a per object basis, it is actually **significantly** slower than Java's GC and memory allocation, for example.

If you use a library to pre-slate your memory and do a few really special stuff (thus removing you from access to malloc directly) you will get speeds comparable to Java at best.

You would have a really hard time beating Java's GC manually.

@icedquinn

> they stop the world without telling the process

No not really. The GC doesnt freeze your program, it is smart enough to work within the idle time most of the time. You'd be hard pressed to get the GC to glitch your program or slow things down compared to manually doing it. If you do it manually and do a really good job in almost all situations I you will likely get improvements so minimal you could barely measure it.

@icedquinn Not sure I agree. The whole point of the GC not being explicit is to reduce human error, and it does a good job at that. Java performance compared to many other interpreted languages is exceptional (not so much .net).

You also do have the ability to "suggest" the invocation of garbage collection should you need to add some explicit control to speed things up. but it rarely makes much of a difference.

@collin want to share it, maybe something will stick out to other eyes?

@collin

Did a little searching:

solargraph.org/guides/configur

looks like you need to refine the "require" option with your optional paths.

@TruthSandwich

Having similarities to past groups doesnt take away from thr fact that they are distinct from those groups.

If i paint in the style of picasso it doesnt mean i **am** picasso.

@mike805 @sdgathman @ambihelical @mandlebro @georgetakei

@TruthSandwich

Actually hippies started in early 1960s in on haight-ashbury. While it grew out of thr beatnik movement it is distinct from beatniks and earlier groups that may have influenced it.

@mike805 @sdgathman @ambihelical @mandlebro @georgetakei

I sit here watching the Sig-afta strike over (in part) AI replacing the need for actors and extras..... wait till these people hear about cartoons!

is one of the foundations of . When observing a new fact, we always compare it with a control, a witness or a standard and every conclusion is relative to our references. Sometimes I think we need to remember that and understand that certain things are .

@freemo many years ago, when I was doing repairs, we sometimes had to add wire jumpers onto boards (back in the day when a lot of glue logic was used and that was a way to fix bugs). For this we had to use teflon coated ~28AWG stranded wire and used this tool for stripping weller-tools.com/eu/gb/precisi. You would put the wire in the jaws and spin the tweezers around until it pierced the insulation then pulled. I would not use this tool for anything else though ...

@TruthSandwich I am not really all that interested in what he said, not disagreeing or agreeing there. I just find the whole capitalist vs socialist discussion interesting.

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.