Re: [Mongrel] [Ruby Forum] Message from user amit-singh

2010-09-22 Thread Luis Lavena
On Wed, Sep 22, 2010 at 6:13 AM,  amittome...@yahoo.com wrote:
amit-singh sent you the following message:


Sorry to send you personal message but its urgent...

Please, really, do not email me directly, I can't answer all the
questions that are emailed daily.

 hii all,
 am using apache as frontend to mongrel and loaded xsendfile
 module in apache ,am looking for 1 GB of download .this is download
 routine

 def download

 @stream = Stream.find(params[:id])

 send_file(@stream.location,:filename = @stream.name,:disposition 
 'attachment',:x_sendfile = true )

 and

 And this is how it is processed
 Sending X-Sendfile header
 d:/dm/predator_720x480_5mbps_30fps_17minclip.264.filepart Completed in
 57513ms (View: 0, DB: 15) | 200 OK [http://src/streams/download/6596]


It is clear that for the time it took to complete the request 57
seconds is way to much time to the request actually been delivered by
X-Sendfile headers and not by Rails.

 very first times its okk i getting full 1.1 GB of file getting
 downloaded,but when i am trying to download this 1.1 gb of file again,
 am getting failed to allocate memroy what could be soultion?? and can i
 use cache.clear before send_file function??

Do you understand that?

Rails is serving the request, the 1.1GB, not Apache.

That is why is failing.

 and more thing to again download 1.1 gb of file i have to restart my
 servers..
 and one more thing i noticed while downloading file my c driver memory
 geeting decrease...where file being stored in c drive while downloading
 thanks??

Dunno about that, but it is clear that the file is not being streamed by Apache.

First:

1) I assume you have mongrel behind apache as reverse-proxy

2) static files are being served by Apache and not send to mongrel

3) You can check apache logs to verify that the request is actually
setting the headers.

4) Is D:/ directory available to Apache? is a mapped network drive?

5) Can you check tasklist or Windows Task Manager to determine which
process is the one eating the memory? Apache or Mongrel

6) When reporting a problem, try to include the more version
information as possible, like apache version, Ruby version etc.

And again, as mentioned before, search the web first and try to
determine if the problem is you (and the way you do things) or the
tools you're using by separating and analyzing each individual part of
your setup.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] [Ruby Forum] Message from user amit-singh

2010-09-22 Thread James Tucker
My guess is middleware is trying to load the file to determine the etag or such.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] [Ruby Forum] Message from user amit-singh

2010-08-19 Thread Luis Lavena
Hello, please don't send personal messages. Post to the list so
everybody benefits from the answer.

On Thu, Aug 19, 2010 at 11:36 AM,  amittome...@yahoo.com wrote:
 amit-singh sent you the following message:

 
 have created a window service(rails website)using commnad like

 mongrel_rails service::install -N smar2 -p 3000 -a 192.168.247.49 -e
 production -c D:/work/Smar/src
 now a service named smar2 is created but when i try to run it i got an
 error message like service started and stopped it has nothing to do
 now i would like to know how do i configure smar2 in regedit and what
 values should i add in Application and Appparameters .
                         plzzz help me
 

Do your application work when running mongrel_rails start from the console?

Have you check the contents of .log like mongrel_service and
servicefb.log located in the Ruby bin directory?

We need more details to help you out.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users