2016-04-18 7 views
0

私はstart-appを2回実行する必要があります。最初の実行で私のコンソールはエラーを報告します:Grails run-appを2回実行する必要があります

| Running application... 
Error occurred during initialization of VM 
Could not reserve enough space for object heap 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':bootRun'. 
> Process 'command 'C:\Program Files\Java\jdk1.8.0_77\bin\java.exe'' finished with 
non-zero exit value 1 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output. 
| Error Failed to start server (Use --stacktrace to see the full trace) 

しかし、2回目の実行では、完全に実行されます。なぜ誰かが説明できますか?

答えて

0

mxPermとmaxMemoryのためのファイル名を指定して実行buildconfig.groovy増値でJVM with -XX:MaxHeapSize=512m(または任意の大きな数)(略して-Xmx512m)

+0

まだ機能していません –

0

grails.project.fork = [ 
    // configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required 
    // compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true], 

    // configure settings for the test-app JVM, uses the daemon by default 
    test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true], 
    // configure settings for the run-app JVM 
    run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false], 
    // configure settings for the run-war JVM 
    war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false], 
    // configure settings for the Console UI JVM 
    console: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256] 
] 
関連する問題