第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Java選項(xiàng)-Xmx代表什么?

Java選項(xiàng)-Xmx代表什么?

千萬(wàn)里不及你 2019-07-30 11:13:16
Java選項(xiàng)-Xmx代表什么?java -Xmx1024m filename什么-Xmx意思?
查看完整描述

3 回答

?
繁花如伊

TA貢獻(xiàn)2012條經(jīng)驗(yàn) 獲得超12個(gè)贊

看到這里:Java Tool Doc,它說(shuō),

-Xmx n
指定內(nèi)存分配池的最大大小(以字節(jié)為單位)。此值必須是1024的倍數(shù)大于2MB。附加字母k或K表示千字節(jié),或m或M表示兆字節(jié)。默認(rèn)值為64MB。此值的上限在Solaris 7和Solaris 8 SPARC平臺(tái)上約為4000米,在Solaris 2.6和x86平臺(tái)上為2000米,減去開(kāi)銷金額。例子:

           -Xmx83886080
           -Xmx81920k
           -Xmx80m

因此,簡(jiǎn)單來(lái)說(shuō),您將Java堆內(nèi)存設(shè)置為可用內(nèi)存最多1024 MB,而不是更多。

請(qǐng)注意,-Xmx和1024m之間沒(méi)有空格

如果使用大寫或小寫,則無(wú)關(guān)緊要。例如:“-Xmx10G”和“-Xmx10g”完全相同。


查看完整回答
反對(duì) 回復(fù) 2019-07-30
?
慕田峪9158850

TA貢獻(xiàn)1794條經(jīng)驗(yàn) 獲得超7個(gè)贊

C:\java -X


    -Xmixed           mixed mode execution (default)

    -Xint             interpreted mode execution only

    -Xbootclasspath:<directories and zip/jar files separated by ;>

                      set search path for bootstrap classes and resources

    -Xbootclasspath/a:<directories and zip/jar files separated by ;>

                      append to end of bootstrap class path

    -Xbootclasspath/p:<directories and zip/jar files separated by ;>

                      prepend in front of bootstrap class path

    -Xnoclassgc       disable class garbage collection

    -Xincgc           enable incremental garbage collection

    -Xloggc:<file>    log GC status to a file with time stamps

    -Xbatch           disable background compilation

    -Xms<size>        set initial Java heap size

    -Xmx<size>        set maximum Java heap size

    -Xss<size>        set java thread stack size

    -Xprof            output cpu profiling data

    -Xfuture          enable strictest checks, anticipating future default

    -Xrs              reduce use of OS signals by Java/VM (see documentation)

    -Xcheck:jni       perform additional checks for JNI functions

    -Xshare:off       do not attempt to use shared class data

    -Xshare:auto      use shared class data if possible (default)

    -Xshare:on        require using shared class data, otherwise fail.


The -X options are non-standard and subject to change without notice.


查看完整回答
反對(duì) 回復(fù) 2019-07-30
?
撒科打諢

TA貢獻(xiàn)1934條經(jīng)驗(yàn) 獲得超2個(gè)贊

-Xmx選項(xiàng)更改VM的最大堆空間。java -Xmx1024m表示VM最多可以分配1024 MB。通俗地說(shuō),這意味著應(yīng)用程序最多可以使用1024MB內(nèi)存。


查看完整回答
反對(duì) 回復(fù) 2019-07-30
  • 3 回答
  • 0 關(guān)注
  • 4021 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)