found 402067 1.5.0-16-2
thanks

Hi.

On Tue, Dec 18, 2007 at 06:19:46PM +0100, Emilio Scalise wrote:
> I have the same problem using openvz machine. I've read that also 
> linux-vserver users have the same problems.
> 
> Is there a way to limit the memory usage of the 
> command 'java -client -Xshare:dump'?
> 

I experience the same issue here, also inside an OpenVZ VE.

However, looking at the postinst, it looks rather strange to me :

    # activate class data sharing                                               
                                                                                
               
    case i386 in i386|sparc)
        rm -f $basedir/jre/lib/i386/client/classes.jsa
        xmarg=$(awk '/^((Mem|Swap)Free|Cached):/ { m+=$2 } END { if (m > 
1048576) print "-Xmx1m" }' /proc/meminfo 2>/dev/null || true)
        log=$(tempfile)
        if ! $basedir/bin/java -client -Xshare:dump $xmarg -XX:PermSize=128m > 
$log; then
            cat >2 $log
            rm -f $log
            exit 1
        fi
        rm -f $log
    esac

    # activate class data sharing                                               
                                                                                
               
    case i386 in i386|sparc)
        rm -f $basedir/jre/lib/i386/client/classes.jsa
        $basedir/bin/java -client -Xshare:dump > /dev/null
    esac

looks like two times the same code, more or less...

I guess there's something weird here, right ?

Best regards,



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to