java - Eclipse - simulate full disk when running server -


i have small application doesn't take lots of space (the application lot of disk writing, data accumulates) , need know happens when disk full , application still trying write disk; whether parts fail or entire thing.

i'm running tomcat within eclipse , know if there way limit disk space allowed server created in eclipse. ideas?

you can create small ram drive, can used physical drive exists entirely in ram. has added benefit fast , don't have delete test files afterwards, contents gone after ram drive closed.

as how create ram drive, depends on operating system. in linux, can use tmpfs (taken https://unix.stackexchange.com/questions/66329/creating-a-ram-disk-on-linux):

mount -o size=16g -t tmpfs none /mnt/tmpfs

edit: in windows, isn't shipped system need install additional software. list of can found @ http://en.wikipedia.org/wiki/list_of_ram_drive_software.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -