DashO is a code obfuscator for Java. Today it wasted my time. It will happily read in a jar file and use the manifest to find the entrypoint. It also gives you the option of writing its output to a jar file. I made the mistake of thinking that this new jar would also contain a manifest. It doesn't.
So it's probably easier to get DashO to output to a directory and ask Ant to package the files how you want them.
Going over the docs, it looks like you can specify a manifest in the config file, but I didn't see anything in the GUI.
Thursday, March 1, 2007
Overcommitted to the old kernel
If you want to make sure your Linux kernel does not over commit memory you can run this:
Now let's just say you're in some sleep-addled state and you've done this not realizing that the server you are logged into is running Linux 2.4 where this setting is undefined. Let's also say that this is a production server with over 250 people logged in. For effect, we should add that it's after-hours and the server is over 1000 miles away.
sysctl -w vm.overcommit_memory=2and edit /etc/sysctl.conf to make the change survive a reboot. After all, you think, how rude would it be if some greedy process asks for RAM killing your well-behaved process in the confusion. How rude indeed.Now let's just say you're in some sleep-addled state and you've done this not realizing that the server you are logged into is running Linux 2.4 where this setting is undefined. Let's also say that this is a production server with over 250 people logged in. For effect, we should add that it's after-hours and the server is over 1000 miles away.
Now that the kernel refuses to allocate any RAM at all, what do you do? You can't run 'sysctl' again and even if you could run a friendly 'shutdown -r now', the machine probably wouldn't get very far. You feel crippled–'vi' is right out and even your 'cat' needs RAM. Luckily your trusty shell is still open and already has all the RAM it needs. This will save you:
echo 0 > /proc/sys/vm/overcommit_memoryNow go home before you do anything else stupid.
Subscribe to:
Posts (Atom)