|
From: SourceForge.net <no...@so...> - 2008-07-08 17:32:43
|
Bugs item #2013669, was opened at 2008-07-08 12:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2013669&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interactions Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mathias Ricken (mgricken) Assigned to: Nobody/Anonymous (nobody) Summary: DrJava slows to a crawl with repeated println statements Initial Comment: Created from the support request [ 2013647 ] DrJava slows to a crawl with repeated println statements https://sourceforge.net/tracker/index.php?func=detail&aid=2013647&group_id=44253&atid=438936 Right now, I'm guessing it has something to do with the length of the interactions document. The first few lines, e.g. from 0 to 1000 go very fast, then it slows down. If the for loop finishes, and there are 5000 lines in the interactions document, and I run the same for loop again, the output is slow right from the beginning. This indicates that a long document makes printing slow. Furthermore, which is of even higher importance, in the current version (and the last beta), we can't even run the for loop in the submission below. There is no way to write a for loop in newer versions in DrJava! See: https://sourceforge.net/tracker/index.php?func=detail&aid=1954403&group_id=44253&atid=438935 Text below: I am using DrJava with students in a Linux lab at the University of Chicago. Simple programs cause it to become unresponsive. For example, a simple "for" statement: for(int i = 0; i < 5000; i++){ System.out.println(i); } will bog down and almost stop the system after about 2000 lines. The DrJava screen will also stop refreshing, and it takes about 5 minutes to respond to the "Reset" button. I have tried this with several versions of DrJava and on several machines with slightly different linux installations. We are running DrJava via the resident java ("java -jar drjava.jar" more-or-less). I would appreciate any help you can give, as this is certainly creating havoc in my class! Thanks. -- Walter Carlip Here is the DrJava "about" box for a typical lab system: Drjava Version: 20080112-0033 DrJava Configuration file /ad/ysp112/.drjava Used memory. about 6.05 megabytes Free memory. about 1.61 megabytes Total memory. about 7.68 megabytes Total memory can expand to: about 63.56 megabytes . . . and here are the System Properties . . . System Properties: DrJava Version 20080112-0033 drjava.debug.port = 48550 java.runtime.name = Java(TM) SE Runtime Environment sun.boot.library.path = /usr/java/jdk1.6.0_06/jre/lib/i386 java.vm.version = 10.0-b22 java.vm.vendor = Sun Microsystems Inc. java.vendor.url = http://java.sun.com/ path.separator = : java.vm.name = Java HotSpot(TM) Client VM file.encoding.pkg = sun.io sun.java.launcher = SUN_STANDARD user.country = US sun.os.patch.level = unknown java.vm.specification.name = Java Virtual Machine Specification user.dir = /net/galactica<anonymized user.home> java.runtime.version = 1.6.0_06-b02 java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment java.endorsed.dirs = /usr/java/jdk1.6.0_06/jre/lib/endorsed os.arch = i386 java.io.tmpdir = /tmp line.separator = "\u000a" java.vm.specification.vendor = Sun Microsystems Inc. os.name = Linux sun.jnu.encoding = ISO-8859-1 java.library.path = /usr/java/jdk1.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i38 6:/usr/java/jdk1.6.0_06/jre/../lib/i386:/usr/local/lib:/usr/lib:/usr/openwi n/lib:/opt/SUNWdtpcv/lib:/usr/java/packages/lib/i386:/lib:/usr/lib java.specification.name = Java Platform API Specification java.class.version = 50.0 sun.management.compiler = HotSpot Client Compiler os.version = 2.6.25.9-76.fc9.i686 user.home = <anonymized user.home> user.timezone = America/Chicago java.awt.printerjob = sun.print.PSPrinterJob file.encoding = ISO-8859-1 java.specification.version = 1.6 java.class.path = /usr/local/drjava user.name = <anonymized user.name> java.vm.specification.version = 1.0 java.home = /usr/java/jdk1.6.0_06/jre sun.arch.data.model = 32 user.language = en java.specification.vendor = Sun Microsystems Inc. java.vm.info = mixed mode, sharing java.version = 1.6.0_06 java.ext.dirs = /usr/java/jdk1.6.0_06/jre/lib/ext:/usr/java/packages/lib/ext sun.boot.class.path = /usr/java/jdk1.6.0_06/jre/lib/resources.jar:/usr/java/jdk1.6.0_06/jre/lib/r t.jar:/usr/java/jdk1.6.0_06/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0_06/jr e/lib/jsse.jar:/usr/java/jdk1.6.0_06/jre/lib/jce.jar:/usr/java/jdk1.6.0_06/ jre/lib/charsets.jar:/usr/java/jdk1.6.0_06/jre/classes java.vendor = Sun Microsystems Inc. file.separator = / java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi sun.io.unicode.encoding = UnicodeLittle sun.cpu.endian = little java.rmi.server.hostname = 127.0.0.1 sun.awt.exception.handler = edu.rice.cs.drjava.ui.DrJavaErrorHandler sun.cpu.isalist = #DrJava configuration file #Tue Jul 08 11:50:30 CDT 2008 key.delete.next = shift DELETE key.delete.previous = shift BACK_SPACE save.before.compile = true remote.control.enabled = false recent.files = [/net/galactica<anonymized user.home>/test1.java,/net/galactica<anonymized user.home>/test1.dj2,/net/galactica<anonymized user.home>/test1.dj0,/net/galactica<anonymized user.home>/test.java] window.height = 965 window.width = 1270 window.x = 0 window.y = 0 window.state = 0 last.dir = /net/galactica<anonymized user.home> last.interactions.dir = /net/galactica<anonymized user.home> Used memory: about 5.87 megabytes Free memory: about 1.81 megabytes Total memory: about 7.68 megabytes Total memory can expand to: about 63.56 megabytes -- Walter Carlip ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2013669&group_id=44253 |