Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Kalpesh Gaikwad
Error in Starting of Tomcat server
13. August 2012 07:34
Antwort

Kalpesh Gaikwad

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 10. August 2012

Neue Beiträge

I am getting following error when i start the tomcat server.

"Error occurred during initialization of VM
Could not reserve enough space for object heap"

Please Help me...
Ricardo Funke
RE: Error in Starting of Tomcat server
13. August 2012 10:05
Antwort

Ricardo Funke

LIFERAY STAFF

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 20. Juni 2012

Neue Beiträge

You're running out of memory. Liferay requires at least 1G of free memory space. So your machine must have at least 1.5 GB
Kalpesh Gaikwad
RE: Error in Starting of Tomcat server
13. August 2012 20:58
Antwort

Kalpesh Gaikwad

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 10. August 2012

Neue Beiträge

There is 6GB Empty space in my system drive i.e. C Drive & my systems RAM is 1 GB.
Yet i am facing this problem.
Brian Kim
RE: Error in Starting of Tomcat server
13. August 2012 21:20
Antwort

Brian Kim

LIFERAY STAFF

Rang: Expert

Nachrichten: 319

Eintrittsdatum: 16. August 2004

Neue Beiträge

Hi Kalpesh,

I believe Ricardo is referring to the fact that you must properly allocate at least 1GB of memory to your Tomcat using JVM args on startup. See this article:

http://www.liferay.com/web/shuyang.zhou/blog/-/blogs/2609369
Mika Koivisto
RE: Error in Starting of Tomcat server
14. August 2012 15:13
Antwort

Mika Koivisto

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1513

Eintrittsdatum: 7. August 2006

Neue Beiträge

You won't be able to run Liferay with the default settings in a machine with only 1GB of RAM. You can make it work if you run Linux with only console (no X) and decrease heap size and PermGen size way down but you won't be able to run anything else on that machine and even then you are going to run into OutOfMemoryError quite often. With minimum recommended settings you are going to need at least 2GB of RAM just for running the OS and Tomcat. If you want to run anything else you are going to need even more RAM.

If you have only 6GB of hard disk space and 1GB RAM then you are in a desperate need of a modern computer.
Hitoshi Ozawa
RE: Error in Starting of Tomcat server
14. August 2012 15:44
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

I have a test site setup on a virtual machine with CentOS with only 1 GB RAM and about 600MB HDD. However, I'm running CUI and have database and file system on a different vm. I have to delete/stop all unnecessary services. It's useful to testing out clustering techniques but definitely not for development nor production.

Doing a build-service on liferay portal-impl requires much more memory too. :-)
Kalpesh Gaikwad
RE: Error in Starting of Tomcat server
15. August 2012 20:51
Antwort

Kalpesh Gaikwad

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 10. August 2012

Neue Beiträge

I got solution by changing
Liferay Setting ->Memory args -> -Xmx1024m -XX:MaxPermSize=256m to Liferay Setting ->Memory args -> -Xmx1024m -XX:MaxPermSize=128m.

Thanx to all...
Hitoshi Ozawa
RE: Error in Starting of Tomcat server
15. August 2012 21:25
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

You actually decreased the maximum memory size and it worked?
Kalpesh Gaikwad
RE: Error in Starting of Tomcat server
16. August 2012 01:13
Antwort

Kalpesh Gaikwad

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 10. August 2012

Neue Beiträge

Hitoshi Ozawa:
You actually decreased the maximum memory size and it worked?


Yes, It works. :-)
Rama Krishna Guntuka
RE: Error in Starting of Tomcat server
14. November 2012 23:37
Antwort

Rama Krishna Guntuka

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 14. November 2012

Neue Beiträge

I am also facing the same problem. My System is running on 2GB RAM. When I was starting catalina.bat it was not able to start properly..

In Eclipse Juno, I added this server as tomcat 7.0 server, it started then in the eclipse. But it's unable to open the homepage, ie http://localhost:8080/ and it was saying 404 page not found..


Please give me a reply..

I am new to Liferay Portal apps.

I am sending the screenshots of those problems..
Anhang

Anhang

Anhänge: error.PNG (25,0k), error2.PNG (84,8k)
Sushil Saini
RE: Error in Starting of Tomcat server
15. November 2012 03:01
Antwort

Sushil Saini

Rang: Regular Member

Nachrichten: 104

Eintrittsdatum: 27. Juli 2011

Neue Beiträge

Hi Rama,

Can you please check and tell what is your liferay memory configuration. Basically, if your system memory is 2 GB you can't allocate complete 2GB memory to JVM.

Cheers
Sushil Saini