Java crashing on windows server

Asked

Viewed 253 times

1

Guys I’m having a problem, I have an app running on server 2012 ,the problem is that after a couple of days the java hangs and does not give me any error , I have to finish the java and open again then it comes back to work , I’m using glassfish , someone has seen this error ?

  • I’m not an expert on Java EE. But you could put some more information on the system. For example, if you use some framework, which database, Glassfish version... One more thing, you’ve tried it with Tomcat?

  • good, Firebird database , use Hibernate jpa and jsf

  • What version of Glassflish? Have you tried with Tomcat?

  • to using glassfish 4, not tested with Tomcat yet

  • What is the configuration of the machine used?

  • is an i7 with 16 GB of memory

  • Dude, if @Pedrosoares' suggestion doesn’t work, I believe you’ll need to gather some more data about this problem. I know little about Glassfish but, if I remember correctly, it has an administration console with monitoring tools. I think it might be a cool tool to understand what’s going on.

  • The first step is for you to monitor what is happening in the application during the crash. Is it a JVM crash, that is, is the process finished from scratch? Does the application simply stop responding? How much memory is it consuming at the time of locking? You can use tools like Jvisualvm that come in JDK to monitor the application in real time. Extract a thread dump, that is, a picture of the Traces stack of all threads running at the time of locking.

  • Anyway, you need to start an investigation and not keep kicking the problem. This can be caused by any upgrade someone has made to the system, updating in some library, abrupt increase of data loaded in memory (maybe some user has imported thousands of new records into the database) and so on. This occurs when someone performs a specific function?

Show 4 more comments

1 answer

1

I’m not an expert on Java EE, but from what I’ve been reading on the Internet, some versions of Glassfish happen exactly the same problem, but nobody knows why. So I’ll summarize the steps I found on the internet and make sure it works in your case.
01) Update your Glassfish, if it is the last version, go back to a previous one.
02) Check if you have more than 2gb RAM, some people report 2gb RAM problem with Glassfish on Windows 7/Server.
03) Start using Tomcat.
04) Check the routines of the software if it is your development, there are good practices that avoid this problem, for example, do not consult the bank in Gets and Sets.

That’s all I found on the Internet, as I said before, I’m not an expert on Java, I’m just trying to help.

  • thanks for the help, tomorrow I will test and I return the result

Browser other questions tagged

You are not signed in. Login or sign up in order to post.