Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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 1440 times)
0 Members and 1 Guest are viewing this topic.
Offline Jesse_Attard

Senior Newbie





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

Hello,

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: http://www.tacticstudios.com/downloads/logs.rar 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: http://pastebin.java-gaming.org/cfa70551363

Jesse
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: 434
Projects: 3
Exp: 16 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 http://pastebin.java-gaming.org/cfa70551363 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: http://www.linuxatemyram.com/

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  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (33 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (59 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org 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‑gaming.org
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!