You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/07/08 18:49:29 UTC

[jira] Created: (IO-82) Test takes a long time to run in Mustang

Test takes a long time to run in Mustang
----------------------------------------

         Key: IO-82
         URL: http://issues.apache.org/jira/browse/IO-82
     Project: Commons IO
        Type: Bug

 Environment: Mustang RC b90 on Linux (x86)
http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
    Reporter: Henri Yandell
 Assigned to: Henri Yandell 


    [junit] Running org.apache.commons.io.FileCleanerTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec

On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441468 ] 
            
Henri Yandell commented on IO-82:
---------------------------------

Yep, still there in the latest JDK:

    [junit] Running org.apache.commons.io.FileCleanerTestCase
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 226.987 sec

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441734 ] 
            
Henri Yandell commented on IO-82:
---------------------------------

Much, much faster:

    [junit] Running org.apache.commons.io.FileCleanerTestCase
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 9.996 sec

I'll go ahead and update the test case with that change. Nice debug job :)

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Updated: (IO-82) Test takes a long time to run in Mustang

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/IO-82?page=all ]

Henri Yandell updated IO-82:
----------------------------

    Fix Version: 1.3

Putting in 1.3. Punt to 1.4 if 1.3 goes out before a stable Mustang is available.

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>          Key: IO-82
>          URL: http://issues.apache.org/jira/browse/IO-82
>      Project: Commons IO
>         Type: Bug

>  Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>     Reporter: Henri Yandell
>      Fix For: 1.3

>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441736 ] 
            
Henri Yandell commented on IO-82:
---------------------------------

So I can commit the fix - but any reason why it doesn't just sleep in there? Are we just doing busywork there to create a pause, or is there something subtle?

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Stephen Colebourne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441785 ] 
            
Stephen Colebourne commented on IO-82:
--------------------------------------

We need to force a gc to start the cleaner working

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Stephen Colebourne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441496 ] 
            
Stephen Colebourne commented on IO-82:
--------------------------------------

This looks a mite dodgy:

        while (FileCleaner.getTrackCount() != 0) {
            System.gc();
        }

JDK1.6 could have altered System.gc to not do anything, thus it takes longer.

Try adding this

        int total = 0;
        while (FileCleaner.getTrackCount() != 0) {
            byte[] b = new byte[1024 * 1024];
            b[0] = (byte) System.currentTimeMillis();
            total = total + b[0];
            System.gc();
        }

to waste some memory and kick the gc (I know its just as bad...)


> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Stephen Colebourne (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441375 ] 
            
Stephen Colebourne commented on IO-82:
--------------------------------------

I'd like to get IO 1.3 out soon. Hen, can you confirm this issue still exists?

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Commented: (IO-82) Test takes a long time to run in Mustang

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/IO-82?page=comments#action_12441274 ] 
            
Niall Pemberton commented on IO-82:
-----------------------------------

Running on Windows XP seems to be OK - I tried both the beta2 (mid-June I think) and the most recent (jdk-6-rc-bin-b101-windows-i586-05_oct_2006)

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


[jira] Resolved: (IO-82) Test takes a long time to run in Mustang

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/IO-82?page=all ]

Henri Yandell resolved IO-82.
-----------------------------

    Resolution: Fixed

svn ci -m "Fixing #IO-82, in JDK 1.6 the gc call does not seem to be giving us the garbage collection, so Stephen came up with this to force that to happen. Speed seems good in JDK 1.4->1.6 and happily this isn't an issue with the underlying source, just the test. " src/test/org/apache/commons/io/FileCleanerTestCase.java
 
Sending        src/test/org/apache/commons/io/FileCleanerTestCase.java
Transmitting file data .
Committed revision 463310.

> Test takes a long time to run in Mustang
> ----------------------------------------
>
>                 Key: IO-82
>                 URL: http://issues.apache.org/jira/browse/IO-82
>             Project: Commons IO
>          Issue Type: Bug
>         Environment: Mustang RC b90 on Linux (x86)
> http://www.java.net/download/jdk6/binaries/jdk-6-rc-bin-b90-linux-i586-30_jun_2006.bin
>            Reporter: Henri Yandell
>             Fix For: 1.3
>
>
>     [junit] Running org.apache.commons.io.FileCleanerTestCase
>     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 116.485 sec
> On 1.4.2 on the same machine/checkout, it takes only 1.x seconds.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org