Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Could not reserve enough space for object heap. Could not create the Java VM

  1. #1
    Join Date
    Sep 2009
    Posts
    112

    Default Could not reserve enough space for object heap. Could not create the Java VM

    Moved to a new VPS hosting. (server with 650 mb ram)
    I fresh installed the latest java JDK
    I fresh installed wowza 2

    root@cpanel [/usr/local/WowzaMediaServer/bin]# ./startup.sh
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    I searched the wowza forums, and found threads suggesting to edit
    /usr/local/WowzaMediaServer/bin/setenv.sh
    I did that. I think originally it was
    JAVA_OPTS="-Xmx768M"
    I tried instead:
    JAVA_OPTS="-Xmx384M"
    and also:
    JAVA_OPTS="-Xmx128M"
    But I still get memory errors and Wowza won`t run.
    I have about 550 mb ram free.
    Any ideas, please?
    Thanks

  2. #2
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi
    Is the Java version that you're running 32bit or 64bit?
    I think this happens with 32bit.

    Jason

  3. #3
    Join Date
    Sep 2009
    Posts
    112

    Default

    Hi Jason, thanks for answering
    I Installed the 64 bit rpm Java JDK on a 64bit server.
    I already unistalled wowza and reinstalled - problem persists!

  4. #4
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi
    When Wowza starts up in stand-alone mode does it say in the logs that it's using the 64bit architecture?

    There is a guide here,
    http://www.wowza.com/forums/content....old-Java-(fix)

    Jason

  5. #5
    Join Date
    Sep 2009
    Posts
    112

    Default

    That`s what I`m getting:
    root@cpanel [/]# java -version
    java version "1.7.0_03"
    Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
    I`m currently reinstalling wowza2 (3rd time) after having uninstalled+reinstalled JDK.
    When this is done I`ll look into the logs and be back to report, thanks

  6. #6
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi
    Start-up logs should look something like this:

    Java Name: Java HotSpot(TM) 64-Bit Server VM
    Java Vendor: Sun Microsystems Inc.
    Java Version: 1.6.0_31
    Java VM Version: 20.6-b01
    Java Spec Version: 1.6
    Java Home: C:\Program Files\Java\jre6
    Java Max Heap Size: 682MB
    Java Architecture: 64
    Java Locale[user.language]: en
    Java Locale[user.country]: GB

    Note the bold "Java Architecture: 64" which is what you should be looking for.

    Jason

  7. #7
    Join Date
    Sep 2009
    Posts
    112

    Default

    After having installed JDK and Wowza again, without errors and trying to run it as a standalone for the first time, instead of a prompt for Serial I get the usual error.
    The wowzamediaserver_error.log was empty and these are the contents of the wowzamediaserver_access.log right after the error:

    #Version: 1.0
    #Start-Date: 2012-04-18 15:02:41 CDT
    #Software: Wowza Media Server 2.0.0 build22912
    #Date: 2012-04-18
    #Fields: date	time	tz	x-event	x-category	x-severity	x-status	x-ctx	x-comment	x-vhost	x-app	x-appinst	x-duration	s-ip	s-port	s-uri	c-ip	c-proto	c-referrer	c-user-agent	c-client-id	cs-bytes	sc-bytes	x-stream-id	x-spos	cs-stream-bytes	sc-stream-bytes	x-sname	x-sname-query	x-file-name	x-file-ext	x-file-size	x-file-length	x-suri	x-suri-stem	x-suri-query	cs-uri-stem	cs-uri-query
    2012-04-18	15:03:53	CDT	server-start	server	INFO	200	Wowza Media Server 2 Developer 2.0.0 build22912	-	-	-	-	71.424	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Serial number: XXXXX-XXXXX-XXXXX-XXXXX-7FQ87	-	-	-	71.425	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Maximum connections: 10	-	-	-	71.433	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Hardware Available Processors: 1	-	-	-	71.434	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Hardware Physical Memory: 275MB/1024MB	-	-	-	71.435	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Hardware Swap Space: 15311MB/16383MB	-	-	-	71.436	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Max File Descriptor Count: 1024	-	-	-	71.436	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Open File Descriptor Count: 37	-	-	-	71.437	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	OS Name: Linux	-	-	-	71.437	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	OS Version: 2.6.18-274.3.1.el5.028stab094.3	-	-	-	71.438	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	OS Architecture: amd64	-	-	-	71.438	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Name: Java HotSpot(TM) 64-Bit Server VM	-	-	-	71.439	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Vendor: Oracle Corporation	-	-	-	71.439	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Version: 1.7.0_03	-	-	-	71.439	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java VM Version: 22.1-b02	-	-	-	71.44	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Spec Version: 1.7	-	-	-	71.44	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Home: /usr/java/jdk1.7.0_03/jre	-	-	-	71.441	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Max Heap Size: 123MB	-	-	-	71.441	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:53	CDT	comment	server	INFO	200	-	Java Architecture: 64	-	-	-	71.442	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:54	CDT	comment	server	INFO	200	-	CMDInterface now listening: [any]:8083	-	-	-	72.812	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:54	CDT	comment	server	INFO	200	-	_defaultVHost_ home directory: /usr/local/WowzaMediaServer	-	-	-	73.001	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:55	CDT	vhost-start	vhost	INFO	200	_defaultVHost_	-	-	-	-	74.005	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:55	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:1935)	-	-	-	74.171	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:55	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:1935)	-	-	-	74.174	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:55	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:8086)	-	-	-	74.176	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:03:55	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:8086)	-	-	-	74.177	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:07	CDT	vhost-stop	vhost	INFO	200	_defaultVHost_	-	-	-	-	85.397	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:07	CDT	server-stop	server	INFO	200	-	-	-	-	-	85.406	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    #Version: 1.0
    #Start-Date: 2012-04-18 15:04:42 CDT
    #Software: Wowza Media Server 2.0.0 build22912
    #Date: 2012-04-18
    #Fields: date	time	tz	x-event	x-category	x-severity	x-status	x-ctx	x-comment	x-vhost	x-app	x-appinst	x-duration	s-ip	s-port	s-uri	c-ip	c-proto	c-referrer	c-user-agent	c-client-id	cs-bytes	sc-bytes	x-stream-id	x-spos	cs-stream-bytes	sc-stream-bytes	x-sname	x-sname-query	x-file-name	x-file-ext	x-file-size	x-file-length	x-suri	x-suri-stem	x-suri-query	cs-uri-stem	cs-uri-query
    2012-04-18	15:04:43	CDT	server-start	server	INFO	200	Wowza Media Server 2 Developer 2.0.0 build22912	-	-	-	-	0.785	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Serial number: XXXXX-XXXXX-XXXXX-XXXXX-7FQ87	-	-	-	0.788	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Maximum connections: 10	-	-	-	0.788	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Hardware Available Processors: 1	-	-	-	0.795	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Hardware Physical Memory: 278MB/1024MB	-	-	-	0.797	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Hardware Swap Space: 15311MB/16383MB	-	-	-	0.797	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Max File Descriptor Count: 1024	-	-	-	0.798	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Open File Descriptor Count: 37	-	-	-	0.798	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	OS Name: Linux	-	-	-	0.799	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	OS Version: 2.6.18-274.3.1.el5.028stab094.3	-	-	-	0.799	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	OS Architecture: amd64	-	-	-	0.8	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Name: Java HotSpot(TM) 64-Bit Server VM	-	-	-	0.8	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Vendor: Oracle Corporation	-	-	-	0.801	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Version: 1.7.0_03	-	-	-	0.801	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java VM Version: 22.1-b02	-	-	-	0.802	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Spec Version: 1.7	-	-	-	0.802	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Home: /usr/java/jdk1.7.0_03/jre	-	-	-	0.803	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Max Heap Size: 123MB	-	-	-	0.803	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	Java Architecture: 64	-	-	-	0.804	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	CMDInterface now listening: [any]:8083	-	-	-	1.346	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:43	CDT	comment	server	INFO	200	-	_defaultVHost_ home directory: /usr/local/WowzaMediaServer	-	-	-	1.394	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:45	CDT	vhost-start	vhost	INFO	200	_defaultVHost_	-	-	-	-	3.002	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:45	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:1935)	-	-	-	3.16	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:45	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:1935)	-	-	-	3.161	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:45	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind attempt ([any]:8086)	-	-	-	3.164	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2012-04-18	15:04:45	CDT	comment	vhost	INFO	200	_defaultVHost_	Bind successful ([any]:8086)	-	-	-	3.165	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    Java Architecture is 64.

  8. #8
    Join Date
    Sep 2009
    Posts
    112

    Default

    Just tried wowza3 . Same error.
    please notice in the logs I posted:
    Java Max Heap Size: 123MB
    Is that heap size normal?

  9. #9
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi
    Yes I see that Java is running in 64bit, I take it you still have this problem after seeing that 64bit java is being used?

    So something else must be causing this problem then,
    I noticed that you are running Wowza 2.0.0 and it would be a good idea to upgrade.

    What happens when you type? (on the command line) :
    java -version

    Jason

  10. #10
    Join Date
    Sep 2011
    Posts
    1,934

    Default

    Hi
    I think that 123MB is to low but Wowza should still run.

    What happens when you type? (on the command line) :
    java -version

    Jason

Page 1 of 2 12 LastLast

Similar Threads

  1. Unexpected exception.: java.lang.OutOfMemoryError: Java heap space
    By sriv.mayank in forum Performance and Tuning
    Replies: 1
    Last Post: 03-26-2014, 02:40 PM
  2. Replies: 9
    Last Post: 07-03-2013, 08:31 AM
  3. Error: java.lang.OutOfMemoryError: Java heap space
    By Denis_Ukraine in forum Server Administration Discussion
    Replies: 5
    Last Post: 05-20-2013, 03:32 PM
  4. Wowza failed after 10 days - java.lang.OutOfMemoryError: Java heap space
    By tribalhost in forum Performance Tuning Discussion
    Replies: 5
    Last Post: 04-10-2013, 06:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •