memory

GraalVM native executables can run faster than Scala/Java/JVM applications, with much less memory consumption

In two small tests where GraalVM was able to create a native executable, the native executable ran significantly faster than the equivalent Scala/Java code running with the Java 8 JVM, and also reduced RAM consumption by a whopping 98% in a long-running example. On the negative side, GraalVM currently doesn’t seem to work with Swing applications.

Notes on looking at MacOS application/process memory usage

Very briefly, I spent a little time today trying to understand how much memory/RAM a Java/Swing application was really using, and these are my notes from that excursion. Note that the app is bundled as a MacOS/Java app I named AlPad, but from some system perspectives it is only seen by the name JavaAppLauncher. Here are my notes, which will hopefully be useful to me in the future:

How an 82-year-old woman with dementia improved significantly

From a story of how an 82-year-old woman with dementia improved significantly by changing her diet:

“A change in diet, which was comprised of high amounts of blueberries and walnuts, has proven to have had a strong impact on Sylvia’s condition that her recipes are now being shared by the Alzheimer’s Society ... Sylvia also began incorporating other health foods, including broccoli, kale, spinach, sunflower seeds, green tea, oats, sweet potatoes and even dark chocolate with a high percentage of cacao. All of these foods are known to be beneficial for brain health.”

“Mark and Sylvia devised to diet together after deciding that the medication on it’s own was not enough, they looked into the research showing that rates of dementia are much lower in Mediterranean countries and copied a lot of their eating habits.”

Scala: How to give SBT more memory (RAM) to work with

As a brief note, I was trying to run a Scala application inside SBT today and kept getting this “out of memory” error:

[error] (run-main-0) java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded

The solution to the problem was to allocate more memory when I start SBT. To give SBT more RAM I first issue this command at the command line:

“I remember when I was three years old” alvin June 4, 2017 - 9:59pm

“Even when I was just three years old, I could recall many previous lives. But to many people this sort of thinking isn’t acceptable, so now when I’m asked what I can remember, I just say ‘I remember when I was three years old.’”

~ a monk