aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Using Sonatype Nexus proxy-host configuration with apache,Proxy repository downloads are very slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Using Sonatype Nexus proxy-host configuration with apache,Proxy repository downloads are very slow" Watch "Using Sonatype Nexus proxy-host configuration with apache,Proxy repository downloads are very slow" New topic
Author

Using Sonatype Nexus proxy-host configuration with apache,Proxy repository downloads are very slow

d. singh
Greenhorn

Joined: Feb 24, 2009
Posts: 4
I am guessing,there must be some mechanism inside Nexus which is doing some scheduled cache cleaning after 24 hrs.I am not much sure but through our scheduled jenkins build that we placed is showingThis build is retriving artifact from Proxy and after building deploying to Host Nexus.
According to our current requirement,I am looking into setting through that we can stop cache cleanup.

Would you guys can given more information regarding that? How I can force nexus That it must not to clean cache from proxy
If we have not to expire Cache from proxy Nexus in any case(have good size of disk,etc),for that what are all settings we have to make so cache will never get expire or cleaned up?
Feel free to ask inputs.



[Thumbnail for Screen shot 2012-06-28 at 3.15.51 PM.png]

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30965
    
158

When configuring the proxy, you can set a few timeout time settings. One of them is max age. Setting it to -1 means not expiring.

See the screenshot here.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
d. singh
Greenhorn

Joined: Feb 24, 2009
Posts: 4
I AM REALLY GRATEFUL FOR YOU QUICK RESPONSE AND HELP.THANKS AGAIN


yes you are right ,by putting -1 in the expiration setting we can control cache cleanup.
but its not happening IN THIS CASE ,Is there any other way to control cache cleanup forcibly ?
Why its start deleting cache after every 24 hrs even I didn't enable scheduled cache expiration job into nexus?




Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30965
    
158

Could a cron job of the like on the server be deleting the cache directory?
d. singh
Greenhorn

Joined: Feb 24, 2009
Posts: 4
No crontab is there related to cache expiration. The one I have is following

0 * * * * /usr/local/bin/rotate-apache-logs


Is apache VirtualHost configuration can effect cache expiration or is there anything wrong in my VH conf ?following is my VirtualHost configuration. Please help me



<VirtualHost *:80>
ServerName sds-repo-int.qdc.intuit.com
ProxyPass /nexus http://sds-repo-int.qdc.intuit.com:8091/nexus
ProxyPassReverse /nexus http://sds-repo-int.qdc.intuit.com:8091/nexus
ErrorLog /repo/int/ApacheNexusLogs/error.log
CustomLog /repo/int/ApacheNexusLogs/access.log combinedio

</VirtualHost>

<VirtualHost *:8081>
ServerName sds-repo-int.qdc.intuit.com
ProxyPass /nexus http://sds-repo-int.qdc.intuit.com:8091/nexus
ProxyPassReverse /nexus http://sds-repo-int.qdc.intuit.com:8091/nexus
ErrorLog /repo/int/ApacheNexusLogs/error.log
CustomLog /repo/int/ApacheNexusLogs/access.log combinedio

</VirtualHost>

<VirtualHost *:8082>
ServerName pprdirmap302.corp.intuit.net
ProxyPass /nexus http://pprdirmap302.corp.intuit.net:8092/nexus
ProxyPassReverse /nexus http://pprdirmap302.corp.intuit.net:8092/nexus
ErrorLog /repo/dev/ApacheNexusLogs/error.log
CustomLog /repo/dev/ApacheNexusLogs/access.log combinedio

</VirtualHost>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Sonatype Nexus proxy-host configuration with apache,Proxy repository downloads are very slow