damn....you're my hero01micko wrote:Fixed in JWM-653 .. now I can try your programs
works!
Thanks for that. By chance do you have a build script for java? Kind of a tarball to sfs thing?jpeps wrote:Updated working jre to latest security patch (on first page)
It was a little tricky getting the link to work.01micko wrote:Thanks for that. By chance do you have a build script for java? Kind of a tarball to sfs thing?jpeps wrote:Updated working jre to latest security patch (on first page)
Code: Select all
#!/bin/sh
jre="jre1.7.0_17"
temp="jre1.7.0_17_001"
mkdir -p "/tmp/${temp}/usr/local/bin"
mkdir -p "/usr/local/${jre}/bin"
## GET PACKAGE
wget -O "/tmp/${jre}.tar.gz" http://javadl.sun.com/webapps/download/AutoDL?BundleId=75250
## UNPACK AND MOVE TO NEW FOLDER
cd /tmp
tar -xvzf "/tmp/${jre}.tar.gz"
mv "${jre}" "${temp}/usr/local"
## COPY JAVA FILES FOR LINKING
cd "${temp}/usr/local"
cp "${jre}/bin/java" "/usr/local/${jre}/bin"
cd "/tmp/${temp}/usr/local/bin"
ln -s "/usr/local/${jre}/bin/java" .
## CHANGE NAME FOR SFS BUILD
cd /tmp
mv "${temp}" "${jre}"
dir2sfs "$jre"
## Change name and CLEAN UP
name="$(ls | grep jre1*sfs | grep -v "txt")"
mv "$name" jre1-7.0-17.sfs
rm -r "/usr/local/${jre}"
rm -r "/tmp/${jre}"
rm "/tmp/${jre}.tar.gz"
rm /tmp/jre1*txt
echo "jre1-7.0-17.sfs is in /tmp"
I know I'm a little late to be commenting on this particular post... but...sunburnt wrote:<snip>
Android is nearly a tablet + desktop O.S. ( amigo called it an interface ).
I`m thinking that making it desktop capable would kill Linux and Weeners.
Does this tweak only work with certain Java packages? I have Java 1.6.0_33 in Wary Puppy. I modified the application_x-jar script in: /etc/xdg/rox.sourceforge.net/MIME-types with the run action tweak, then ran one of my favorite Java utility programs and I was not able to find any noticeable difference in memory usage at all.jpeps wrote:I was able to knock 63% off use of RAM with -Xmxn option (n=size). 2m is minimum.
example: in ROX, set run action to:
java -Xmx2m -jar "$@"
Code: Select all
pmap -x process id
I'm running version 1.7.0_13 (you might as well update...you can run the script). Try running from the terminal, comparing with top -n1. On my sort editor, it loads with 378m with just java -jar. With 20m tweak, it loads with 143m, and with 2m tweak, 129m. It you tweak it too much for the app, it won't run. It it loads with only 2m, you should see a big difference.Monsie wrote:[
Does this tweak only work with certain Java packages? I have Java 1.6.0_33 in Wary Puppy.
Yes, I already tried Mick's suggestion when re-naming the Java package, but it didn't work... Then I had a new idea, and also replaced the underscores in the file name... and that did work ✔jpeps wrote:01micko wrote:Monsie
try renaming jpep's jre sfs package adding a hyphen after jre .. bootmanager might be choking on that...
...changed the name; I didn't realize that was a convention.
edit: patched the build script
I have not tried Shinobar's SFS load on the fly, but I am fairly sure that it works with Wary. If I get back to doing a full install of Puppy, I will probably test it. Do you know if Shino's program is subject to the same limitations with file names as BootManager or will it accept any package with an underscore in the name?jpeps wrote:Ah..thanks Monsie. I have other packages with underscores as well, besides the devx. I'm guessing you're not using SFS-on-the-Fly, or is it distro dependent? I'll rename again. Did you get the cache limiting option working?
I don't know if this is unique to Wary, since this was the first I've heard of a Puppy.distro refusing to load underscores.Monsie wrote: I have not tried Shinobar's SFS load on the fly, but I am fairly sure that it works with Wary. If I get back to doing a full install of Puppy, I will probably test it. Do you know if Shino's program is subject to the same limitations with file names as BootManager or will it accept any package with an underscore in the name?
That's also strange, since it's a standard Java option. Does it work with other java apps? You could try it on posted Sort Editor.As for your tweak, I tested it on my favorite Java program and was only able to see a reduction in memory usage of 1 mb... However, this application was written for Java 1.4 and therefore might not be able to take full advantage of the tweak. Still, I was happy to see that it ran more efficiently with the new JRE anyway, as I noted in an earlier post.
Monsie
I'm guessing that the app required more cache than you were allowing it.Monsie wrote: At the very least, I now know that the tweak does not depend on a particular version of Java.... more likely it has to do with the quality of the code.
Monsie
Yes, well I did try several adjustments in 1 mb increments, but each time I got the same result.jpeps wrote:I'm guessing that the app required more cache than you were allowing it.Monsie wrote: At the very least, I now know that the tweak does not depend on a particular version of Java.... more likely it has to do with the quality of the code.
Monsie
CharMap ran with a 15M tweak at 140M, and at 379M without. I'm not sure why it's not working on your Wary distro. Did you run it from the terminal to see if anything else is going on?Monsie wrote:[
Yes, well I did try several adjustments in 1 mb increments, but each time I got the same result.
For the record, the Java program I am talking about is Character Map which I find very useful in Puppy at times. You can download it at: http://www.psc-consulting.ca/fenske/
Monsie
It worked! ✔ First, I tried the 15M tweak, and found that it opened properly... but that it was still using the same amount of memory as if no adjustment had been made. Then I bumped it to 16M and saw a drop of 81 mb Wow... thanks for all of your help.jpeps wrote:CharMap ran with a 15M tweak at 140M, and at 379M without. I'm not sure why it's not working on your Wary distro. Did you run it from the terminal to see if anything else is going on?Monsie wrote:[
Yes, well I did try several adjustments in 1 mb increments, but each time I got the same result.
For the record, the Java program I am talking about is Character Map which I find very useful in Puppy at times. You can download it at: http://www.psc-consulting.ca/fenske/
Monsie
There's another app, Acento, that does something similar:
http://java-apps.org/