Stuck on starting appzard buildserver, please help

Hi, I am new and in the process of installing appzard. I have received the error mentioned in the title and checked some topics here to solve my problem, and I made some progress, but I’m still stuck. Please advise, I’m very interested in this platform. :grinning:
I have run appzard already with debug and will post the results below:

$ appzard start -d
Starting Appzard local instance..
$ C:\Users\Username\AppData\Roaming\appzard\deps\appengine\bin\dev_appserver.cmd --port=8888 --address=0.0.0.0 C:\Users\Username\AppData\Roaming\appzard\deps\build\war
Executing [C:\Program Files (x86)\Java\jre1.8.0_311\bin\java, -Dfile.encoding=UTF-8, -classpath, C:\Users\Username\AppData\Roaming\appzard\deps\appengine\bin\..\lib\appengine-tools-api.jar, com.google.appengine.tools.development.DevAppServerMain, --property=kickstart.user.dir=C:\Program Files\Git, --no_java_agent, --port=8888, --address=0.0.0.0, C:\Users\Username\AppData\Roaming\appzard\deps\build\war]
Dec 30, 2021 6:46:33 PM com.google.appengine.tools.development.SystemPropertiesManager setSystemProperties
INFO: Overwriting system property key 'java.util.logging.config.file', value 'C:\Users\Username\AppData\Roaming\appzard\deps\appengine\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Users\Username\AppData\Roaming\appzard\deps\build\war\WEB-INF\appengine-web.xml'
2021-12-30 18:46:33.419:INFO::main: Logging initialized @5483ms to org.eclipse.jetty.util.log.StdErrLog
2021-12-30 18:46:33.448:WARN:oejs.AbstractConnector:main: Ignoring deprecated socket close linger time
2021-12-30 18:46:33.622:INFO:oejs.Server:main: jetty-9.4.18.v20190429; built: 2019-04-29T20:42:08.989Z; git: e1bc35120a6617ee3df052294e433f3a25ce7097; jvm 1.8.0_311-b11
Appzard local instance is running!
Starting appzard buildserver..
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <clinit>
INFO: Default GCS Bucket Configured from App Identity: app_default_bucket
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getInitialRetryDelayMillis() = 100
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRequestTimeoutMillis() = 30000
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryDelayBackoffFactor() = 2.0
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryMaxAttempts() = 10
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getRetryMinAttempts() = 3
Dec 30, 2021 4:46:34 PM com.google.appinventor.server.storage.ObjectifyStorageIo <init>
INFO: RetryParams: getTotalRetryPeriodMillis() = 10000
Dec 30, 2021 4:46:34 PM com.google.appengine.api.datastore.dev.LocalDatastoreService init
INFO: Local Datastore initialized:
        Type: High Replication
        Storage: C:\Users\Username\AppData\Roaming\appzard\deps\build\war\WEB-INF\appengine-generated\local_db.bin
Dec 30, 2021 4:46:34 PM com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: Time to load datastore: 13 ms
2021-12-30 18:46:34.808:INFO:oejsh.ContextHandler:main: Started [email protected]{/,file:///C:/Users/Username/AppData/Roaming/appzard/deps/build/war/,AVAILABLE}{C:\Users\Username\AppData\Roaming\appzard\deps\build\war}
2021-12-30 18:46:34.808:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2021-12-30 18:46:34.808:INFO:oejs.session:main: node0 Scavenging disabled
2021-12-30 18:46:34.830:INFO:oejs.AbstractConnector:main: Started [email protected]{HTTP/1.1,[http/1.1]}{0.0.0.0:8888}
2021-12-30 18:46:34.831:INFO:oejs.Server:main: Started @6894ms
Dec 30, 2021 4:46:34 PM com.google.appengine.tools.development.AbstractModule startup
INFO: Module instance default is running at http://localhost:8888/
Dec 30, 2021 4:46:34 PM com.google.appengine.tools.development.AbstractModule startup
INFO: The admin console is running at http://localhost:8888/_ah/admin
Dec 30, 2021 6:46:34 PM com.google.appengine.tools.development.DevAppServerImpl doStart
INFO: Dev App Server is now running
$ java -Xms3000m -Xmx3000m -Djava.awt.headless=true -classpath * com.google.appinventor.buildserver.BuildServer --dexCacheDir C:\Users\Username\AppData\Roaming\appzard\build\dexCache --shutdownToken token
Error occurred during initialization of VM
Could not reserve enough space for 3072000KB object heap

Also, I have reinstalled Java JDK and updated 64 bit normal Java, restarted PC, and retried with the same results. My PC has 32 GB RAM, with over 20 still available.

i mean like are there 2 or more drives on your computer? or only 1?

Oh, there are 3

Java Configuration Application allows you to set custom disk size:

Open Java Control Panel and increase size in “Setting”, this may work for you, I’m not sure.


It also seems Java is limiting the usage, there are several methods to increase Java Heap Size. It is a property, there are several ways to do that.

Maybe also this may help you out:

https://www.google.com/search?client=firefox-b-d&q=set+java+heap

2 Likes

Thanks for your help, I ended up at this website after searching more Why do I get the java error "Could not reserve enough space for object heap"? | Research Computing Environment (RCE), and I increased the initial heap size.

I also picked up on another forum that a heap problem may have been due to java being installed as the 32-bit version. I have a 64-bit Windows 10 and just let the browser auto-download before, but I specifically found a 64-bit java and reinstalled it just to make sure, and now it’s working. :+1:

1 Like