Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (778)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Random JVM crashes. (no JNI)  (Read 3280 times)
0 Members and 1 Guest are viewing this topic.
Offline Jesse_Attard

Senior Newbie

« Posted 2013-06-18 20:08:45 »


I have a J2SE application that is running the server for my game.  It runs on a Linux box that is getting a number of various JVM crashes. The program has no JNI and does not use any libraries, it's all just Java. The call stacks are always different, and I don't see any consistency in what is happening in the application when the JVM crashes. It does however always seem to be a SIGSEGV. Sometimes they happen after 2 minutes of uptime, sometimes after days.

I tried upgrading the JVM from 6.0_27-b07 to 7.0_06-b24 but it has made no difference. I uploaded all the hs_err logs here: if you would like to take a look.

Due to the inconsistent call stacks my only assumption is that memory is getting corrupted in some way, and the crash is occurring later on.  Maybe it is a hardware problem? I'm not certain what would cause this.

Any assistance you can provide in how to debug this, or any ideas would be extremely appreciated. Here is the most recent log:

Offline joen

Senior Newbie

Projects: 1

« Reply #1 - Posted 2013-06-18 20:23:56 »

Can you run a system memory test on the linux box?

Offline ReBirth
« Reply #2 - Posted 2013-06-19 01:40:58 »

I had several SIGSEGV incident before but I was using JNI (libgdx). So I think it's related to underhood black magic.

Which JVM do you use?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »

Medals: 1061
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #3 - Posted 2013-06-19 07:42:47 »

You're running an old VM with some known serious bugs in the compiler. Try upgrading to the latest one first.

Cas Smiley

Offline concerto49

Junior Devvie

« Reply #4 - Posted 2013-06-19 09:19:42 »

What operating system is this? Linux, but what?

High performance, fast network, affordable price VPS - Cloud Shards
Available in Texas, New York & Los Angeles
Need a VPS Upgrade?
Offline Jesse_Attard

Senior Newbie

« Reply #5 - Posted 2013-06-19 13:18:59 »

- I am changing out the hardware so hopefully that will rule out that problem.
- Detailed info on the server and JVM is in but I tried both 6.0_27-b07 and 7.0_06-b24.
- The Linux box is: Linux 2.6.32-220.13.1.el6.x86_64 OS:CentOS release 6.4

I will ask why they installed 7.0_06 and try upgrading to the latest and see if that helps.
Offline Damocles
« Reply #6 - Posted 2013-06-19 15:10:25 »

Memory: 4k page, physical 2045524k(93212k free)

shure runs on low free memory.

also Log your memory consumption.
Offline joen

Senior Newbie

Projects: 1

« Reply #7 - Posted 2013-06-19 18:55:18 »

shure runs on low free memory.

That's normal for a linux system - it will try to use all memory for buffers/cache if it can to improve performance.  If a program needs more memory, it will throw out buffers/cache and allocate it to the program.  In addition to 2G of normal memory, there's 4G of swap, almost all of which is free.  In effect, there's really about 1.2G of free normal memory and 4G of free swap.

MemTotal:        2045524 kB
MemFree:           93212 kB
Buffers:          215936 kB
Cached:           957604 kB
SwapTotal:       4095992 kB
SwapFree:        4084172 kB

Offline Jesse_Attard

Senior Newbie

« Reply #8 - Posted 2013-06-20 12:47:37 »

Joen is right, there's lots of free memory. Funny but accurate explanation here:

Also, I do output the memory in a private log, it didn't exceed more than 10mb at one point. Plus, you'd think it would throw OutOfMemoryException not just crash the JVM.
Pages: [1]
  ignore  |  Print  

hadezbladez (361 views)
2018-11-16 13:46:03

hadezbladez (194 views)
2018-11-16 13:41:33

hadezbladez (363 views)
2018-11-16 13:35:35

hadezbladez (91 views)
2018-11-16 13:32:03

EgonOlsen (2193 views)
2018-06-10 19:43:48

EgonOlsen (2229 views)
2018-06-10 19:43:44

EgonOlsen (1386 views)
2018-06-10 19:43:20

DesertCoockie (2023 views)
2018-05-13 18:23:11

nelsongames (1677 views)
2018-04-24 18:15:36

nelsongames (2313 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!