-XX:MaxPermSize=728M
Now Deploy on Save works without causing memory issues.
For Glassfish Server:
C:\Program Files\glassfish-4.1\glassfish\domains\domain1\config
domain.xml
1
| Path path = FileSystems.getDefault().getPath(".", name); |
1
| byte[] filearray = Files.readAllBytes(path); |
1
| List |
1
2
3
4
| BufferedReader reader = Files.newBufferedReader(path, Charset.defaultCharset() );String line = null;while ( (line = reader.readLine()) != null ) { /* … */ } |
1
2
3
| String content = …Files.write( path, content.getBytes(), StandardOpenOption.CREATE); // create new, overwrite if exists |
1
2
3
4
| BufferedWriter writer = Files.newBufferedWriter( path, Charset.defaultCharset(), StandardOpenOption.CREATE);writer.write(content, 0, content.length()); |
#!/bin/bashsudo rsync -rltDvu --modify-window=1 --progress --delete --delete-excluded --exclude-from=/home/bob/Bash/BackupBigExclude.txt /home/bob/ /media/harddrive/backup
gedit /home/bob/Bash/BackupExclude.txt
MyDownloads.VirtualBoxlost+found