Applet memory / JVM & IE Configuration

Hi,
I created an applet loading some jpeg images and shapefiles
Plug-in java is set to 350 Mo (-Xmx350m) which seems to be the max size accepted by IE
Over-350Mo-jvm-size shuts down IE at launch.
With 350 mo configured, I miss some jpeg images when applets is loaded.
How can I manage to increase the JVM without shutting down IE.
Any ideas ?
Thanks in advance

Hello Sanjaya,
I am facing a very similar problem and my project is in danger - I was wondering if you have found a way to deal with that memory leak?
Please let me know.
Thanks.
Tal

Similar Messages

  • Exchange 2013 - The Microsoft Exchange Transport service is rejecting message submissions because the service continues to consume more memory than the configured threshold

    Noticed at about noon that no emails had been received all day. Began to investigate and found that the MS Exchange Transport service had been set to deny email submission because it was using too much memory on the server (91%). 
    The error message makes me think that we may have been getting used by malware or something similar.“The Microsoft Exchange Transport service is rejecting message submissions because the service continues to consume more memory than the
    configured threshold.” 
    There are also several warning messages that list particular IP addresses and say that a connection from that IP was denied because there were already the maximum number of connections (20). 
    From what I can tell, all of the IP addresses are from Taiwan. 
    The time period for which some emails may be missing is from close of business yesterday ( 4/3/2014) through about 12:45 today (4/4/2014). 
    From the time I spent reading and trying to figure out the error, I think we may need to readjust our throttling policies to prevent this from happening. 
    The exchange server is currently running at 90%+ CPU and 50%+ memory usage the majority of the time, and I’m not sure how to fix it.
    Also, I cannot get into EMS I get a access denied message from the destination computer. (Exchange server) I want to get into there to change the throttling policy back to default, since we disabled it.
    The Error reads:
    The WinRM client cannot process the request. The WinRM client tried to use Kerberos authentication mechanism, but the destination computer <Exchange> returned an 'access denied' error. Change the configuration to allow Kerberos authentication
    mechanism to be used or specify one of the authentication mechanism supported by the server. (How do I do this?) To use Kerberos, specify the local computer name as the remote destination. (I'm trying to use EMS while logged into the local Exchange server)
    Also verify that the client computer and the destination computer are joined to a domain. (Exchange is on our domain, and the computer trying to connect is the same computer) To use basic, specify the local computer name as the remote destination, specify
    Basic authentication and provide user mane and password. Possible authentication mechanisms reported by server.
    At line:1 char:1
    + New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
    I assumed control of this exchange system already in place and I do not have much experience with exchange 2013 or server 2012. I do know 2008, but that doesn't help very much in this situation.
    Recent changes to the system:
    About three days ago we switch our sessions policy to allow many more connections, and I believe this caused the issue. This is what I changed it to:
    Made the registry DWORD (32-bit) "Maximum Allowed Sessions Per User" and modified the value to 1000. Location of registry change @ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem
    I just changed it to 10 from the 1000. I'm hoping this solves this. So far no.
    Also, I am not the best in the shell or command line interfaces. Any help would be wonderful!

    Hi,
    Yes, could be hardware performance issue. Try recycle the Transport process and see if the issue persists.
    Thanks,
    Simon Wu
    TechNet Community Support

  • Set Java 1.6 applet memory

    I posted this on the Safari board but it might get a quicker answer here.
    The latest Java control panel no longer allows users to set applet memory. Apple has posted a workaround for those using JRE 1.5 <http://support.apple.com/kb/HT3210>. Is there a similar workaround for those use JRE 1.6?

    On further testing it seems the Safari applet always uses JRE 1.5. I guess this is because JRE 1.6 is 64 bit and Safari is 32 bit. Anyway there is no need to alter the JRE1.6 applet parameters

  • Sometimes "target applet or jvm process exited abruptly" liveconnect

    I have a problem with a applet with is embedded in my webpage ans which I am using to setup a socket connection to a server. I am communicating from the webpage to the applet with live connect to send data, and from the applet to the page with live connect for the received data.
    This works fine most of the time, but occasionaly at the customers site i get the error:
    "target applet or jvm process exited abruptly"
    which seems to indicate the JVM has crashed. I searched the client for hs_err* files but did not find them. The client is running the latest JRE 1.7_05
    Does anyone have any ideas how to find the root cause of this problem ?
    Kind regards,
    Marco

    Enable full tracing and see what is happening with applet around the time you get this message. See also other troubleshooting hints in
    http://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html
    May be browser "reloads" page and reinstantiate the applet or it could be bug in applet or Java platform.

  • Multiple applets, single JVM == out of memory

    Consider the following applet (MS IE 6, JRE 1.4.2_04)
    public class DgAppletTest extends JApplet
    double nums[];
    public void init() {
    nums = new double[10000000];
    public void start() {
    public void stop() {
    public void destroy() {
    This does nothing except allocate a large array. When this is delivered to the browser as part of an html page, a JVM instance is created and so on. The plug in control panel confirms the memory usage. When the user closes the browser window, the applet is "destroyed" but curiously the memory is not gc'ed. The next time the page is delivered the same JVM is used with the current memory situation. The result is that very soon the memory is exhausted.
    Once upon a time, Microsoft launched each browser instance into a separate process. No longer, although there is a registry hack to make it do so. When as a separate process, each browser window instantiates a new JVM. In this scenario, there's no problem. However, hacking the registry is not a solution, nor is telling the end user to modify JVM startup parameters.
    So, what am I not doing? (calling the gc within the applet has no effect on this). What's the trick to get the JVM to actually destroy the destroyed applet?
    Thanks

    http://forum.java.sun.com/thread.jspa?threadID=605153&messageID=3276004
    Quote from another thread:
    Objects are never null. Only references can be null. If you set the only reachable
    reference to the object to null (or to any value other than pointing at that object), then the
    object becomes eligible to be garbage collected. When--or if--it actually gets cleaned up
    is beyond your control, but it's guaranteed to happen if the memory is needed.
    Which is basacally the same as what this tells you:
    http://java.sun.com/developer/technicalArticles/ALT/RefObj/
    under
    Softly Reachable

  • Quake level in an applet compatible JVM 1.1

    Here is a Quake 3d level rendered in an applet with 3DzzD API
    NB: the model has been converted from quake to 3ds, this result in visual imperfection (smooth groups are wrong) more visible on soft engine as it use phong shader, also perf maybe not as good as they should be due to the fact that BSP model produce a lot of unecessary face for 3DzzD engine and conversion produce curved surface with a fixed quality.
    Note that for now there is only windows native libraries on the server and so this demo will not work in hardware mode for other platform than window, this will be updated soon
    Once started it will be rendered using the 3DzzD software renderer, to switch to Hardware mode click the applet and press H
    http://dzzd.net/demo/QUAKE/
    as the software engine may be slow, here is the same applet with a smaller size
    http://dzzd.net/demo/QUAKE/indexSmall.htm
    this feature is available in the last 3DzzD API wich will be published as well as this demo source code in the comming days

    Hi there.
    I've found this page by googling.
    I am not a Java developer, but am using a third party java applet on my web page for mapping.
    Funnily enough, I've been trying to hunt down a memory leak thats occuring in IE (not any other browser).
    It only occurs when the applet is physically visible on the page, and the user is using the Sun JVM (1.5.0_06). The GDI object count increases every time I mouseover a link in a tree.
    This does not occur with the MS JVM.
    Unfortunately I do not have access to the applet source code, but I'm wondering if its related to your problem.
    Have you had any success on this?
    Thanks.

  • Applet using JVM 1.5.0_06 causes GDI Object Leaks

    Hi,
    Since the release of 1.5.0_06 our applet has developed a GDI Object leak. Basically, our applet draws on a panel when ever an update is available. The previous versions of the JVM seem fine and th e GDI Objects are stable, but this new version eats the GDIs up really quickly, and never releases them.
    The problem occurs when the applet repaints itself. Calling repaint() or paint() from code works ok with no leaks but as soon as the applet is forced to repaint because of a resize, or because another window has moved over it the GDIs go up by multiples of 10.
    Here is some sample code:
    import java.awt.*;
    import java.applet.*;
    import java.util.Date;
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class GDIApplet extends Applet {
        //Construct the applet
        public GDIApplet() {
        //Initialize the applet
        public void init() {
            try {
                jbInit();
            } catch (Exception e) {
                e.printStackTrace();
        //Component initialization
         private void jbInit() throws Exception {
             this.setLayout(new BorderLayout());
             this.add(new GDIPanel(), BorderLayout.CENTER);
         public class GDIPanel extends Panel implements Runnable{
        public GDIPanel() {
            Thread t = new Thread(this,"SPGPaintTimer");
            t.start();
        public void paint(Graphics g){
            if( g == null){
                return;
            System.out.println("Paint on thread: " + Thread.currentThread().getName());
            Date d = new Date();
            Rectangle bounds = getBounds();
            g.setColor(Color.black);
            g.fillRect(0,0, bounds.width, bounds.height);
            FontMetrics fm = g.getFontMetrics();
            String val = d.toString();
            int width = fm.stringWidth(val);
            int height = fm.getHeight();
            int x = (bounds.width - width) /2;
            int y = (bounds.height/2) - height;
            g.setColor(Color.yellow);
            g.drawString(val,x,y);
        public void run(){
            while(true){
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException ex) {
                repaint();
    }

    Hi there.
    I've found this page by googling.
    I am not a Java developer, but am using a third party java applet on my web page for mapping.
    Funnily enough, I've been trying to hunt down a memory leak thats occuring in IE (not any other browser).
    It only occurs when the applet is physically visible on the page, and the user is using the Sun JVM (1.5.0_06). The GDI object count increases every time I mouseover a link in a tree.
    This does not occur with the MS JVM.
    Unfortunately I do not have access to the applet source code, but I'm wondering if its related to your problem.
    Have you had any success on this?
    Thanks.

  • Applet Memory Leak - Resizing Images

    Hello,
    I'm having an issue with a Java Applet I have written. The applet reads a directory listing, and displays resized thumbnails in a JTable. The problem is, if the user loads a directory with a lot of large images, the memory usage sky rockets, and is not freed after the user shuts down the applet.
    Below is the code which adds the resized image to a custom table model:
        public void leftClick(){
             main.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            FileSystemView fsv = FileSystemView.getFileSystemView();
            ImageIcon thumbnailIcon = new ImageIcon();
            ImageIcon icon = new ImageIcon();
            File selectedFile = fileTree.getSelectedFile();
            Image scaledImage;
            if(selectedFile!=null){
                if (selectedFile.isDirectory()){
                    File subFiles[] = selectedFile.listFiles();
                    mvtm.clearList();
                    fileTable.removeAll();
                    TableColumn col = fileTable.getColumnModel().getColumn(0);
                    col.setMaxWidth(35);
                    col = fileTable.getColumnModel().getColumn(1);
                    col.setPreferredWidth(200);
                    col = fileTable.getColumnModel().getColumn(3);
                    col.setPreferredWidth(0);
                    col.setMaxWidth(0);          
                    for(int i = 0;i<subFiles.length;i++){
                        if(subFiles.getName().toLowerCase().contains(".jpg")||
    subFiles[i].getName().toLowerCase().contains(".gif")||
    subFiles[i].getName().toLowerCase().contains(".png")||
    subFiles[i].getName().toLowerCase().contains(".bmp")){
    icon = new ImageIcon(subFiles[i].getPath());
    scaledImage = Utils.getScaledImage(icon.getImage(), 30, 30);
    thumbnailIcon = new ImageIcon(scaledImage);
    }else{
    icon = (ImageIcon)fsv.getSystemIcon(subFiles[i]);     
    scaledImage = Utils.getScaledImage(icon.getImage(), 30, 30);
    thumbnailIcon = new ImageIcon(scaledImage);
    mvtm.addFileRecord(thumbnailIcon, subFiles[i].getName(),
    Long.toString(subFiles[i].length()), subFiles[i]);
    main.setCursor(null);
    The resize method is here:
        static Image getScaledImage(Image srcImg, int w, int h){
            BufferedImage resizedImg;
            resizedImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = resizedImg.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
            g2.drawImage(srcImg, 0, 0, w,h, Color.WHITE, null);
            g2.dispose();
            return resizedImg;
        }I have tried to nullify all objects created by overriding the applet destroy method:
        public void destroy(){
            fileTree.getFileTreeListener().clearMvtm();
            addButton = null;
            fileTable = null;
            jLabel1 = null;
            jPanel1 = null;
            jPanel2 = null;
            jProgressBar1 = null;
            jScrollPane1 = null;
            jScrollPane2 = null;
            jScrollPane3 = null;
            messageLabel = null;
            removeButton = null;
            uploadButton = null;
            uploadQueueTable = null;
            fileTree = null;
            fileModel = null;
            uploadQueueModel = null;
            task = null;
            Runtime r = Runtime.getRuntime();
            r.gc();
        }Any help is appreciated.
    Ryan
    Edited by: rthompson2000 on Sep 24, 2008 10:33 AM

    Hi SoulTech,
    thanks for the response. Interesting point I forgot to mention. On my machine, the JVM launches separately, (ie, I get the little Java icon in my task tray on the bottom right of my PC). When I close the applet pop-up, the java icon is still there, and the java.exe process is still running in Task Manager. After about a minute or two, the Java icon disappears, and Java.exe is no longer a running process (ie. the memory is gone, but this takes a minute or two! I want this to stop immediately).
    When I try this in a friends PC, they don't get the JVM icon in their taskbar, and all of the memory is allocated to the ieexplorer.exe process. After they close the applet pop-up window, browsing is very slow since their IEexplorer memory is very high because of the applet.
    can you hook up a profiler?
    I'm just getting familiar with the Netbeans profiler. I am able to see that all of the memory is being allocated in the leftClick() method I posted above. All of the memory is being hogged mainly by type int[] in sun.awt.image.ImageRepresentation.setPixels() and java.awt.image.DataBufferInt
    can you see the vm in the process table?
    See my above explanation. The java.exe process seems to die after a minute or two, but I don't think it frees memory when the VM is running inside the browser (as in the case on my friends PC)
    are you sure destroy is even getting called?
    How can I be sure? You said it didn't need to have anything in it anyways so does it matter?
    are you getting errors?
    No errors.

  • Question regarding Applet and JVM

    Hi all!
    I'm working on an applet now and it's been working quite fine, just that when I run the same applet on different tab in a single browser window, it'll get some error.
    But if I run the applets in different windows, it'll be fine.
    So I'd like to know how does JVM handle the execution of applet?
    What is the difference between:
    - how JVM handles multiple applet in different-tab-in-single-browser and
    - how JVM handles multiple applet in different browser?
    Any help is greatly appreciated :)
    Thanks in advance ^^

    Sounds like you're using static fields. Not a good idea in applets because...
    What is the difference between:
    - how JVM handles multiple applet in different-tab-in-single-browser and
    - how JVM handles multiple applet in different browser?
    ...that's entirely up to the browser. Actually, your question's slightly misconstrued. What you should really ask is,
    What is the difference between:
    - how the browser spawns JVMs in different-tab-in-single-browser and
    - how the browser spawns JVMs in different browser?
    Either way, it's out of your hands. Which is why you're going to have to be very careful about using statics: if you use them for state information then another applet can trash them; if you use them for inter-applet communication you might not reach one applet from another.

  • Satellite 1900-303: Is memory slot 2 configurable?

    I have a satellite 1900-303 and I ask someone to tell me please if the expansion memory slot 2 is configurable. If it is, what for? To share video memory?
    I have seen on one site that is configurable, but on users manual is not mentioned that and I need to be sure before to buy another memory module.
    [Edited by: admin on 08-Jan-06 19:16]

    Hi
    This unit has a ATI MOBILITY RADEON with 32 MB video ram and like Barrie said its not a shared memory graphic card. In this case the memory upgrade doesnt increase this graphic video memory size. But of course the bigger memory size increases the notebook performance.
    Regards

  • Applet memory leak in IE 6.0?

    Hi :
    I am using the following tag to declare an applet, but when I load the page in IE each time I refresh the page, IE memory goes up by ~10MB!! And finally after 5-6 refreshes Microsoft's cunning browser crashes :-)). Any clues?
    -Sanjay.
    <OBJECT classid="com.hexidec.ekit.EkitApplet.class" NAME="Ekit" WIDTH="600" HEIGHT="400"></XMP>
         <PARAM NAME="code" VALUE="com.hexidec.ekit.EkitApplet.class">
         <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
         <PARAM NAME="scriptable" VALUE="true">
         <PARAM NAME="DOCUMENT" VALUE="Welcome to the rich text document editor.">
         <PARAM NAME="STYLESHEET" VALUE="ekit.css">
         <PARAM NAME="LANGCODE" VALUE="en">
         <PARAM NAME="LANGCOUNTRY" VALUE="US">
         <PARAM NAME="TOOLBAR" VALUE="true">
         <PARAM NAME="SOURCEVIEW" VALUE="false">
         <PARAM NAME="EXCLUSIVE" VALUE="true">
         <PARAM NAME="MENUICONS" VALUE="true">
         <PARAM NAME="archive" VALUE="eKit.jar">
         <PARAM NAME="cache_option" VALUE="Plugin">
         <PARAM NAME="cache_archive" VALUE="eKit.jar"></OBJECT>

    Hello Sanjaya,
    I am facing a very similar problem and my project is in danger - I was wondering if you have found a way to deal with that memory leak?
    Please let me know.
    Thanks.
    Tal

  • Applet Caching - JVM and MVM

    Hi,
    I am new to Java and I need to enable caching a java applet archived in a jar/cab file. The caching should work irrespective of whether the User enables the Sun JVM or Microsoft VM in his IE.
    Here is the code I have in my html:-
    <applet width="1" height="1"
         codebase = "/advisor/classessource/"
         code="LauncherApplet.class" name="Launcher"
    MAYSCRIPT VIEWASTEXT id=Applet1>
         <PARAM NAME = CACHE_ARCHIVE VALUE = "classes.jar">
         <PARAM NAME = CACHE_OPTION VALUE = "Plugin" >
         <PARAM NAME='cabbase' VALUE='classes.cab'>
         <param name="ImagArchive" value="0">
    </applet>
    When I enable Sun JVM in IE - I notice the caching works. I'm checking the time stamp Documents and Settings/mylogin/Application Data/Sun/Java/Deployment/cache/javaapi/v1.0/jar
    But when I enable Microsoft VM - The cab file is always getting downloaded into the Local Settings/Temporary Internet Files
    Could you please tell me how do make it cache with MVM enabled?
    Thanks,
    G

    The document you point to explains caching JAR files in 1.3. Can I also cahce GIF files the same way? Does the plug-in caching mechanism work with any file type? If I cache a GIF file, how to I reference that in my code so the Applet uses the cached version instead of the one on the server, or does it implicitly know this?
    Thanks for any insight.

  • Applet memory leak

    It looks like that with Safari, when Javascript calls an applet function with a parameter, twice the size of the parameter is eated in memory and never released.
    This is a big problem in my HTML page since I send the content of a file so after 3 or 4 calls the function does not have anought memory anymore and produce strange behaviour.
    I use Safari 5.1.7 but the same code works fine with Chrome.
    regards

    OK, solved this by isolating the statement that caused the OutOfMemory error, then adding five, count 'em, five System.gc()'s just prior to the statement. I outputted the free memory after each gc and could see it increase each time.
    The statement in question was instantiating an extension of JViewPort which contained a JLayeredPane, the base layer of which is a pretty large image, but there are other populated layers as well. I'm no expert here, but it seems like a flaw, dare I say even a bug, in the garbage collector that it didn't handle this automatically.

  • Applet ms jvm problem

    Hi all,
    I'm writing an applet in which I use threads and it's giving me some errors with msjvm I don't understand.
    With sun plugins there is no problem and all is ok.
    I know that msjvm supports only 1.1.8 and I have to compile with -source 1.4 -target 1.1
    I did all my variable volatile, but with ms jvm the process never ends.
    My source is this:
    //File Prova.java
    public class Prova extends Applet implements ActionListener {
    public void init()
    MakeGUI();
    public void actionPerformed(ActionEvent event)
    if(event.getSource() == start)
    down_result.setText("");
    up_result.setText("");
    start.setEnabled(false);
    cycles = 0;
    status = 0;
    task = new LongTask(0);
    task.start();
    checkWork();
    task = null;
    private void checkWork() {
    try {
    while ( task.noStopRequested ) {
    if(status == 0) {
    //set_Stato_Progress();
    double b_c = format_double((double)task.current );
    double b_t = format_double((double)task.lengthOfTask);
    String cur = Double.toString(b_c);
    String tot = Double.toString(b_t);
    cycles++;
    double s_t = (double)task.current * 1000.0 * 8.0;
    down_result.setText("prova");
    //printThreadName("Down in ");
    if(task.done)
    stato_progress.setText("First step concluded");
    down_result.setText("Fine");
    status = 1;
    cycles = 0;
    else {
    //set_Stato_Progress();
    double b_c = format_double((double)task.current_up );
    double b_t = format_double((double)task.lengthOfTask);
    String cur = Double.toString(b_c);
    String tot = Double.toString(b_t);
    cycles++;
    double speed_temp = (double)task.current_up * 1000.0 * 8.0);
    double s_t = format_double(speed_temp);
    if(task.done_up)
    stato_progress.setText("Test concluso");
    start.setEnabled(true);
    repaint();
    task.interrupt();
    return;
    repaint();
    Thread.sleep((long)QUART_SECOND);
    catch ( Exception x ) {
    stop();
    //File LongTask.java
    public class LongTask extends Thread {
    public volatile boolean noStopRequested;
    private final Object pauseLock = new Object();
    private boolean paused;
    public volatile int lengthOfTask;
    public volatile int current = 0;
    public volatile boolean done = false;
    public boolean canceled = false;
    public String statMessage;
    public volatile long duration;
    public volatile double speed_down;
    public volatile long duration_up;
    public volatile double speed_up;
    public volatile int current_up = 0;
    public volatile boolean done_up = false;
    private byte [] image_byte;
    static int DEFAULT_DOWN_SIZE = 2097152;
    private void printThreadName(String prefix) {
    String name = Thread.currentThread().getName();
    System.out.println(prefix + name);
    public LongTask(int tipo_conn) {      
         lengthOfTask = DEFAULT_DOWN_SIZE;
    paused = true;
    noStopRequested = true;
    current = 0;
    duration = 0;
    speed_down = 0;
    duration_up = 0;
    speed_up = 0;
    current_up = 0;
    done = false;
    done_up = false;
    canceled = false;
    statMessage = null;
    image_byte = null;
    paused = false;
    public void stopThread() {
    paused = true;
    public void run() {
    Socket sock = null;
    InetSocketAddress isa = null;
    InputStream instream = null;
    ByteArrayOutputStream tempBuffer;
    int numBytesRead = 0;
    byte [] buffer;
    try {
    while (noStopRequested) {
    waitWhilePaused();
    //My first operation
    done = true;
    //My second operation
    done_up = true;
    paused = true;
    catch (MalformedURLException e) {
    System.out.println("[Errore] " + e.getMessage());
    Thread.currentThread().interrupt();
    catch(UnknownHostException e) {
    System.out.println("[Errore] " + e.getMessage());
    Thread.currentThread().interrupt();
    catch (IOException e) {
    System.out.println("[Errore] " + e.getMessage());
    Thread.currentThread().interrupt();
    catch(Exception e) {
    e.printStackTrace();
    speed_down = 0.0;
    speed_up = 0.0;
    Thread.currentThread().interrupt();
    private void setPaused(boolean newPauseState) {
    synchronized ( pauseLock ) {
    if ( paused != newPauseState ) {
    paused = newPauseState;
    pauseLock.notifyAll();
    private void waitWhilePaused() throws InterruptedException {
    synchronized ( pauseLock ) {
    while ( paused ) {
    pauseLock.wait();
    I can't explain me where is my error.
    Running my applet on msjvm, it semms that LongTask never ends and never update the volatile variables.
    Any hints?
    Thanks for the support
    Laura

    Solved.
    The ms jvm support 1.1* and then there is no Double.parseDouble.....
    You have to use Double.valueOf(....).doubleValue();
    Bye
    Laura

  • How to find out how many "maximum server memory" should I configure.

    Hello guys
    I'm asking myself what i should configure in "maximum server memory".
    Default is: 2147483647
    Is there a way to find out whats the best for my Database? 
    Cause I really dont understand the "DBCC MEMORYSTATUS" output :(
    Or is it allways "my server has 32GB of ram, so i configure max server memory to 28GB so the OS has 4GB to use"
    I know its a little bit a stupid question...
    Thanks and regards, Dominic

    This is NOT at all really a stupid question!! A very valid question. But its very difficult to answer your question :)
    There is no strict value for it. But you can come to a close value by understanding what are you running on your machine. But for 32 GB Total Memory, 26-28 would be a good capping and later you can do the adjustment as required.
    BTB, important question Are you facing any external memory pressure on your SQL Server and Whats your SQL Server Version(there are some changes for versions)?
    Links that would help you:
    http://www.sqlservercentral.com/blogs/glennberry/2009/10/29/suggested-max-memory-settings-for-sql-server-2005_2F00_2008/
    http://mssqlwiki.com/sqlwiki/sql-performance/basics-of-sql-server-memory-architecture/
    http://sportstoday.us/technology/sql-server-2012---optimizing-sql-server-memory-configuration---min-and-max-server-memory,-optimize-for-ad-hoc-workloads-.aspx

Maybe you are looking for