Skip to content
Advertisement

Tag: memory

java Program runtime is too fast? Issue with Memory

So I am running some simulations that require some sample datasets. For the sake of simplicity I am using this http://loremipsum.sourceforge.net/ Lorem Ipsum generator. I am setting a test parameter called DATASIZE that sets the amount of words or paragraphs this generator creates. I am using this generated data to create an “input” and “output” hash. The output data will

Measure memory consumption with all HttpSessions in Tomcat at an arbitrary point in time

I want to measure the percentage of memory used by HttpSession in a web application. Is there any way to measure memory consumption with all HttpSessions in a running Tomcat instance at an arbitrary point in time without modifying the application? What I have tried In Tomcat, the concrete class of HttpSession is org.apache.catalina.session.StandardSession. I have profiled the application with

Conserving RAM in java by using references to objects

I know some about java, and a lot about the lower level functions of a computer, so I’m always looking for ways to conserve ram. I’m also a fan of dwarf fortress, so I’ve been trying to get some similar system working. So, what I want to do is to make multiple tiles, assign them some type of material, and

How can we simulate OutOfMemory: Metaspace?

I have a task to simulate OutOfMemory: Metaspace error intentionally. I tried different ways, but none gave me needed result. Can someone share good example for this purpose? My first attempt (using javassist): and settings in gradle.properties file: org.gradle.jvmargs=-XX:MaxMetaspaceSize=70M but I’ve got an error: Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main” which I couldn’t catch. My second attempt:

Java JNA – Base Address Finding

I am currently attempting to read/write to memory through the use of JNA for Java. For the past week I have tried a multitude of solutions, mostly from [similar projects][1] I have found online, but nothing has resolved my problem. I know I am receiving the correct process ID of the program, then I create a Pointer using the openProcess

Advertisement