Új hozzászólás Aktív témák
-
válasz
bucihost
#11137
üzenetére
A 110-es sort cseréld ki erre (igy csak másodpercen belül lehet egy usernél ütközés):
String timeStamp = new SimpleDateFormat("YYYY-MM-dd-HH-mm-ss").format(new Date());
String fname = "data/BugReports/" + player.getName() + "-" + timeStamp + ".txt";Egyébként pedig a dátum formátumát úgy állítod be, ahogy szimpatikus. Azért választottam ezt, mert így se pont, se szóköz nem lesz benne.
-
disy68
aktív tag
válasz
bucihost
#11134
üzenetére
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):
-servermode: 25% of the amount of free physical memory in the system, up to 64 MB and at least 8 MB
-clientmode: 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. " -
fatal`
titán
válasz
bucihost
#11132
üzenetére
The flag
Xmxspecifies the maximum memory allocation pool for a Java virtual machine (JVM), whileXmsspecifies the initial memory allocation pool.Note that the JVM uses more memory than just the heap. For example Java methods, thread stacks and native handles are allocated in memory separate from the heap, as well as JVM internal data structures.
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- Elemlámpa, zseblámpa
- Fortnite - Battle Royale & Save the World (PC, XO, PS4, Switch, Mobil)
- Majdnem megfelezi a GeForce GPU-k gyártókapacitását az NVIDIA?
- World of Warships
- Kerékpárosok, bringások ide!
- Windows 11
- Luck Dragon: Asszociációs játék. :)
- Crypto Trade
- Melyik tápegységet vegyem?
- Peugeot, Citroën topik
- További aktív témák...
- HIBÁTLAN iPhone 13 Pro Max 128GB Gold-1 ÉV GARANCIA - Kártyafüggetlen, MS4162, 100% Akksi
- GYÖNYÖRŰ iPhone 12 Mini 128GB Purple-1 ÉV GARANCIA - Kártyafüggetlen, MS3630
- Gamer PC-Számítógép! Csere-Beszámítás! I7 8700K / RTX 3070 / 32GB DDR4 / 1TB SSD
- Számlás!Windows 10 Pro 11 Pro,Windows 10 Home 11 Home, Office 2016,2019,2021 ,Vírusirtok,Mac
- GYÖNYÖRŰ iPhone 14 Pro 128GB Space Black -1 ÉV GARANCIA - Kártyafüggetlen, MS4041, 100% Akksi
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Laptopszaki Kft.
Város: Budapest

