Hirdetés

Új hozzászólás Aktív témák

  • disy68
    aktív tag

    Köszi de számomra ebből nem derül ki, hogy az xmx -et le is foglalja, vagy csak annál többet nem enged neki használni?

    For example, starting a JVM like below will start it with 256 MB of memory and will allow the process to use up to 2048 MB of memory: java -Xms256m -Xmx2048m

    Mit jelent, hogy 256 MB-vel fog indulni?

    Mi történik, ha elhagyom a fenti kapcsolókat és simán "java - jar core.jar"-al indítok? (elhagyhatóak egyáltalán?) :R

    A JVM lefoglal magának bizonyos méretű memóriaterületet, amit ő fog kezelni különböző dolgokra (lásd Memory Management). Xmx a maximum, amit lefoglalhat, de ha nincs rá szükség nem fogja.

    A dokumentációban olvashatsz még részletesen a memória kezelés finomhangolásáról.

    Ahogy a Xms és Xmx kapcsolókról is.
    Pl. Xms:
    "Default Values
    If you do not set this, the minimum Java heap size defaults to (depending on which mode you are running):
    -server mode: 25% of the amount of free physical memory in the system, up to 64 MB and at least 8 MB
    -client mode: 25% of the amount of free physical memory in the system, up to 16 MB and at least 8 MB If the nursery size is set with
    -Xns, the default initial heap size will be scaled up to at least twice the nursery size. "

Új hozzászólás Aktív témák